:root {
  --gold: #ffd34d; --gold2: #f2a218; --red: #e8473c; --red2: #b52a22;
  --ink: #4a2a1c; --cream: #fff6df; --cream2: #f6e2b8; --blue: #4f8cff;
  --ssr: linear-gradient(135deg, #ffe58a, #ff9f1a 60%, #ff5a7a);
  --sr: linear-gradient(135deg, #e4b8ff, #9a5cff);
  --r: linear-gradient(135deg, #b8e4ff, #4f8cff);
  font-family: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: #1f140e radial-gradient(circle at 50% 30%, #4a2f1e, #160d08 75%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: none;
}
#app { position: relative; overflow: hidden; box-shadow: 0 0 60px rgba(0,0,0,.6); }
#game { position: absolute; inset: 0; display: block; }
#ui { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform-origin: 0 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
button { font-family: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .65; }
h2, h3, h4 { margin: 0; }

/* ---------- icons ---------- */
.ic { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 3px; }
.ic-ngoc { background: linear-gradient(135deg, #b8f3ff, #3fb3ff 55%, #2a6fd8); transform: rotate(45deg) scale(.78); border: 2px solid #1a3f8a; border-radius: 3px; }
.ic-vang { background: radial-gradient(circle at 35% 35%, #fff3a0, #ffc21a 55%, #c98a0a); border-radius: 50%; border: 2px solid #8a5a0a; }
.ic-univ { background: linear-gradient(135deg, #ffd1f0, #c86bff); border-radius: 4px 12px 4px 12px; border: 2px solid #5a2a8a; }
.ic.big { width: 54px; height: 54px; margin: 8px auto; display: block; }

/* ---------- buttons ---------- */
.btn {
  position: relative; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 18px 12px;
  background: linear-gradient(#fff9e8, #f3d9a4); box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 #fff;
  font-weight: 800; font-size: 20px; color: var(--ink); transition: transform .06s;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1;
}
.btn small { font-size: 13px; font-weight: 700; margin-top: 2px; opacity: .9; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink), inset 0 2px 0 #fff; }
.btn.gold { background: linear-gradient(#fff3a0, #ffc21a 55%, #f29a0a); }
.btn.red { background: linear-gradient(#ff9a8a, #ec4a3c 55%, #c42d22); color: #fff; text-shadow: 0 2px 0 #7a1a10; }
.btn.small { font-size: 15px; padding: 6px 12px 8px; border-radius: 12px; }
.btn.big { font-size: 34px; padding: 14px 40px 18px; border-radius: 22px; }
.link { background: none; border: none; color: rgba(255,255,255,.75); text-decoration: underline; font-size: 13px; margin-top: 12px; }

/* ---------- resource bar ---------- */
.resbar { display: flex; gap: 6px; }
.resbar span {
  background: rgba(40,20,10,.72); color: #fff; border: 2px solid #c9a227; border-radius: 20px;
  padding: 2px 10px 2px 6px; font-weight: 700; font-size: 14px; white-space: nowrap;
}

/* ---------- home ---------- */
.screen { position: absolute; inset: 0; }
.home .resbar { position: absolute; top: 14px; right: 14px; }
.logo { position: absolute; top: 90px; left: 0; right: 0; text-align: center; line-height: .9; }
.logo span { display: block; font-weight: 800; letter-spacing: 2px; }
.logo .l1 {
  font-size: 66px; color: #ffe36a;
  text-shadow: 0 4px 0 #b5520a, 0 6px 0 #4a2a1c, 3px 3px 0 #4a2a1c, -3px -3px 0 #4a2a1c, 3px -3px 0 #4a2a1c, -3px 3px 0 #4a2a1c, 0 10px 24px rgba(0,0,0,.4);
}
.logo .l2 {
  font-size: 54px; color: #fff; margin-top: 4px;
  text-shadow: 0 4px 0 #a3181a, 0 6px 0 #4a2a1c, 3px 3px 0 #4a2a1c, -3px -3px 0 #4a2a1c, 3px -3px 0 #4a2a1c, -3px 3px 0 #4a2a1c;
}
.logo small {
  display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 700; color: #fff;
  background: rgba(74,42,28,.75); padding: 2px 14px; border-radius: 14px;
}
.home-menu { position: absolute; bottom: 70px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-menu .row { display: flex; gap: 10px; }
.home-menu .row .btn { min-width: 140px; }

/* ---------- panel screens ---------- */
.panel-screen { background: linear-gradient(#fdf1d6, #f1d9a8); overflow-y: auto; padding: 0 16px 24px; }
.topbar-menu {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 12px 0 10px; background: linear-gradient(#fdf1d6 70%, rgba(253,241,214,0));
}
.topbar-menu h2 { flex: 1; font-size: 22px; font-weight: 800; }
.topbar-menu .resbar span { font-size: 12px; padding: 1px 8px 1px 4px; }
.topbar-menu .ic { width: 14px; height: 14px; }
.hint { font-size: 13px; color: #7a5a3a; text-align: center; margin: 10px 4px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 800; color: #fff; padding: 0 8px; border-radius: 10px;
  background: var(--c); border: 2px solid rgba(74,42,28,.6); line-height: 18px;
}
.rar { display: inline-block; font-weight: 800; font-size: 13px; padding: 0 7px; border-radius: 8px; border: 2px solid var(--ink); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); line-height: 18px; }
.rar-SSR { background: var(--ssr); } .rar-SR { background: var(--sr); } .rar-R { background: var(--r); }
.stars { color: #f2a218; letter-spacing: 1px; text-shadow: 0 1px 0 var(--ink); white-space: nowrap; }
.stars b { font-weight: inherit; }
.stars b.off { color: #cbb89a; text-shadow: none; }

/* ---------- stages ---------- */
.stage-list { display: flex; flex-direction: column; gap: 14px; }
.stage-card {
  border: 3px solid var(--ink); border-radius: 18px; padding: 12px 14px; box-shadow: 0 5px 0 var(--ink);
  background: linear-gradient(135deg, #bdf08a, #6fcf5e);
}
.stage-card.theme-pass { background: linear-gradient(135deg, #ffe7a0, #d6c06a); }
.stage-card.theme-tomb { background: linear-gradient(135deg, #d8c8ff, #9a86d8); }
.stage-card.theme-fire { background: linear-gradient(135deg, #ffc9a0, #e0603a); }
.stage-card.theme-river { background: linear-gradient(135deg, #fbe7a8, #d4a84a); }
.stage-card.theme-cave { background: linear-gradient(135deg, #bfe8d0, #4a8a78); }
.stage-card.theme-sea { background: linear-gradient(135deg, #bfeaff, #3a9ad8); }
.stage-card.theme-snow { background: linear-gradient(135deg, #f2fbff, #a8cce8); }
.stage-card.theme-heaven { background: linear-gradient(135deg, #fff0c0, #f0a8c8); }
.stage-card.locked { filter: grayscale(.85); opacity: .7; }
.st-head { display: flex; align-items: center; gap: 8px; }
.st-head b { background: var(--ink); color: #fff; border-radius: 8px; padding: 0 8px; font-size: 14px; }
.st-head h3 { font-size: 22px; flex: 1; }
.stage-card p { margin: 4px 0; font-weight: 600; font-size: 15px; }
.st-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 700; }
.st-meta span { background: rgba(255,255,255,.55); border-radius: 8px; padding: 0 6px; }
.st-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.st-foot .stars { font-size: 22px; }
.st-foot .rew { flex: 1; font-weight: 700; font-size: 14px; }

/* ---------- lineup ---------- */
.lineup-slots { display: flex; gap: 6px; }
.slot {
  flex: 1; position: relative; border: 3px solid var(--ink); border-radius: 14px; background: #fff6df;
  min-height: 150px; display: flex; flex-direction: column; align-items: center; padding: 18px 2px 6px; box-shadow: 0 4px 0 var(--ink);
}
.slot:first-child { background: linear-gradient(#fff3a0, #ffd34d); }
.slot.empty { background: rgba(255,255,255,.4); border-style: dashed; box-shadow: none; justify-content: center; }
.slot.empty i { font-size: 36px; font-style: normal; color: #b59a72; }
.slot-no { position: absolute; top: -10px; background: var(--ink); color: #fff; border-radius: 8px; font-size: 11px; font-weight: 700; padding: 0 6px; white-space: nowrap; }
.slot img { width: 80px; height: 80px; }
.slot b { font-size: 13px; text-align: center; line-height: 1.1; margin: 2px 0; }
.slot .crown { position: absolute; top: 8px; left: 6px; color: #b5520a; font-size: 18px; }
.mini { position: absolute; top: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-weight: 800; padding: 0; line-height: 18px; font-size: 14px; }
.mini.cap { left: 6px; background: #ffe58a; }
.mini.rm { right: 6px; background: #ff8a8a; }
.lineup-body { display: flex; gap: 10px; margin-top: 8px; }
.pick-grid { flex: 1.3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.pick { position: relative; border: 3px solid var(--ink); border-radius: 12px; background: #fff; padding: 4px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 3px 0 var(--ink); }
.pick.in { background: #d9ffd0; outline: 3px solid #3fb950; }
.pick img { width: 72px; height: 72px; }
.pick .rar { position: absolute; top: 4px; left: 4px; }
.pick b { font-size: 14px; } .pick small { font-size: 11px; color: #7a5a3a; }
.synergy { flex: 1; background: rgba(255,255,255,.55); border: 2px solid rgba(74,42,28,.4); border-radius: 12px; padding: 8px; font-size: 13px; }
.synergy h4 { font-size: 15px; margin: 4px 0; }
.syn { padding: 4px 6px; border-radius: 8px; margin-bottom: 4px; opacity: .6; }
.syn.on { opacity: 1; background: #fff3c4; border: 2px solid #f2a218; }
.syn em { display: block; font-style: normal; color: #b5520a; font-weight: 700; font-size: 12px; }
.syn small { display: block; font-size: 11px; }

/* ---------- heroes ---------- */
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hcard { position: relative; border: 3px solid var(--ink); border-radius: 14px; padding: 0 0 6px; overflow: hidden; box-shadow: 0 4px 0 var(--ink); background: #fff; }
.hcard.r-SSR { background: linear-gradient(#fff3c4, #ffd36b); }
.hcard.r-SR { background: linear-gradient(#f3e3ff, #d2a8ff); }
.hcard.locked img { filter: grayscale(1) brightness(.7); }
.hcard img { width: 100%; display: block; }
.hcard .rar { position: absolute; top: 6px; left: 6px; }
.hc-info b { display: block; font-size: 15px; line-height: 1.1; }
.hc-info small { font-size: 11px; color: #7a5a3a; }
.hc-info .lv { display: block; font-size: 12px; font-weight: 700; color: #b5520a; }
.detail { position: relative; }
.det-art { height: 250px; display: flex; justify-content: center; border-radius: 18px; border: 3px solid var(--ink); overflow: hidden;
  background: radial-gradient(circle at 50% 60%, #fff, #ffe7a0 50%, #f2a218); }
.detail.r-SR .det-art { background: radial-gradient(circle at 50% 60%, #fff, #e4c8ff 50%, #9a5cff); }
.det-art img { height: 250px; margin-top: 4px; }
.det-head { margin-top: 8px; }
.det-head h3 { font-size: 28px; display: inline; margin-left: 6px; }
.det-head small { display: block; color: #7a5a3a; font-weight: 600; }
.det-head .tags { display: flex; gap: 6px; margin: 4px 0; }
.lvrow { font-weight: 700; }
.det-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.det-stats div { background: #fff; border: 2px solid rgba(74,42,28,.4); border-radius: 10px; text-align: center; padding: 2px; }
.det-stats span { display: block; font-size: 11px; color: #7a5a3a; } .det-stats b { font-size: 17px; }
.skills-list { display: flex; flex-direction: column; gap: 6px; }
.skill { background: #fff; border: 2px solid rgba(74,42,28,.4); border-radius: 12px; padding: 6px 10px; }
.skill.ult { background: #fff3c4; border-color: #f2a218; }
.skill.bond { background: #ffe4ea; border-color: #ff7a9a; }
.skill p { margin: 0; font-size: 13px; }
.sk-kind { font-size: 11px; font-weight: 700; color: #b5520a; display: block; }
.det-actions { display: flex; gap: 10px; margin-top: 12px; }
.det-actions .btn { flex: 1; }

/* ---------- gacha ---------- */
.banner-art {
  position: relative; height: 300px; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 5px 0 var(--ink);
  background: radial-gradient(circle at 50% 70%, #fff8d0, #ffb347 45%, #c2185b 85%);
}
.banner-art::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255,255,255,.18) 0 10deg, transparent 10deg 20deg); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner-art img { position: absolute; bottom: -6px; }
.ba-main { left: 50%; transform: translateX(-50%); height: 290px; z-index: 2; }
.ba-l { left: 4px; height: 200px; } .ba-r { right: 4px; height: 200px; transform: scaleX(-1); }
.ba-text { position: absolute; top: 10px; left: 0; right: 0; text-align: center; z-index: 3; }
.ba-text span { display: block; font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 #7a1a10, 2px 2px 0 #4a2a1c, -2px -2px 0 #4a2a1c, 2px -2px 0 #4a2a1c, -2px 2px 0 #4a2a1c; }
.ba-text small { background: rgba(74,42,28,.75); color: #fff; padding: 1px 10px; border-radius: 10px; font-weight: 700; }
.pity { margin: 12px 0; background: #fff; border: 2px solid rgba(74,42,28,.4); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.pity em { color: #e8473c; font-style: normal; font-weight: 800; }
.pity small { color: #7a5a3a; font-size: 12px; }
.bar { height: 10px; background: rgba(60,30,10,.25); border-radius: 6px; overflow: hidden; border: 2px solid rgba(60,30,10,.5); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, #ff7a2e); }
.pool { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pool-i { position: relative; width: 56px; height: 56px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.pool-i img { width: 100%; filter: grayscale(.4); }
.pool-i.own img { filter: none; }
.pool-i .rar { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-size: 10px; padding: 0 4px; line-height: 14px; }
.gacha-btns { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.gacha-btns .btn { min-width: 170px; }
.gacha .link { color: #7a5a3a; display: block; margin: 12px auto 0; }

.modal { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(20,10,5,.72); }
.pull-modal { background: radial-gradient(circle, #3a1f4a, #120812 80%); overflow: hidden; }
.pull-glow { position: absolute; inset: -40%; background: repeating-conic-gradient(rgba(255,255,255,.08) 0 8deg, transparent 8deg 16deg); animation: spin 18s linear infinite; }
.pull-modal.best-SSR { background: radial-gradient(circle, #ffd36b, #c2185b 55%, #2a0a18 90%); }
.pull-modal.best-SR { background: radial-gradient(circle, #c89bff, #4a1a7a 60%, #120812); }
.pull-grid { position: relative; display: grid; grid-template-columns: repeat(5, 92px); gap: 8px; }
.pull-grid.n1 { grid-template-columns: 160px; }
.pcard { opacity: 0; animation: flip .5s ease-out forwards; perspective: 400px; }
@keyframes flip { from { opacity: 0; transform: rotateY(90deg) scale(.6); } to { opacity: 1; transform: none; } }
.pc-inner { position: relative; border: 3px solid var(--ink); border-radius: 12px; background: var(--r); padding: 4px 2px 6px; text-align: center; color: #fff; min-height: 140px; }
.r-SR .pc-inner { background: var(--sr); }
.r-SSR .pc-inner { background: var(--ssr); box-shadow: 0 0 22px 6px #ffe36a; }
.n1 .pc-inner { min-height: 220px; }
.n1 .pc-inner img { width: 140px; }
.pc-inner img { width: 82px; background: rgba(255,255,255,.35); border-radius: 10px; }
.pc-inner b { display: block; font-size: 13px; line-height: 1.1; text-shadow: 0 1px 0 var(--ink); }
.pc-inner em { position: absolute; top: -8px; right: -6px; font-style: normal; font-size: 11px; font-weight: 800; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 0 4px; }
.pc-inner em.new { background: #ff3d5a; color: #fff; }
#pullOk { margin-top: 24px; opacity: 0; animation: fadein .3s forwards; }
@keyframes fadein { to { opacity: 1; } }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
#pad { position: absolute; inset: 0; touch-action: none; }
.hud-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; }
.hud-top > div { background: rgba(40,20,10,.72); color: #fff; border: 2px solid #c9a227; border-radius: 12px; padding: 1px 10px; font-weight: 700; font-size: 15px; }
.ht-stage { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-stage b { color: var(--gold); }
.ht-time.over { color: #ff8a8a; }
.btn-icon { width: 38px; height: 34px; border-radius: 10px; border: 2px solid #c9a227; background: rgba(40,20,10,.72); color: #fff; font-weight: 800; }
.gate-bar { position: absolute; top: 52px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.gate-bar span { color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 2px 0 #4a2a1c, 1px 1px 0 #4a2a1c, -1px -1px 0 #4a2a1c; }
.gate-bar .bar { flex: 1; height: 12px; }
.gate-bar .bar i { background: linear-gradient(90deg, #5ad35a, #c8f08a); transition: width .2s; }
.cp-owned { position: absolute; top: 74px; left: 10px; display: flex; gap: 4px; pointer-events: none; }
.cpo { position: relative; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 0 var(--ink); }
.cpo sup { position: absolute; top: -8px; right: -6px; font-size: 10px; background: #fff; color: var(--ink); border-radius: 6px; padding: 0 3px; text-shadow: none; }
.r1 { background: linear-gradient(#b8e4ff, #4f8cff); } .r2 { background: linear-gradient(#e4b8ff, #9a5cff); } .r3 { background: linear-gradient(#ffe58a, #ff7a2e); }
.hud-tools { position: absolute; top: 74px; right: 10px; display: flex; gap: 6px; }
.tool { border: 2px solid #c9a227; border-radius: 10px; background: rgba(40,20,10,.72); color: #fff; font-weight: 800; font-size: 13px; padding: 2px 10px; }
.tool.on { background: linear-gradient(#ffe36a, #f2a218); color: var(--ink); }
.team { position: absolute; left: 8px; bottom: 116px; display: flex; flex-direction: column; gap: 5px; }
.tm { position: relative; width: 54px; height: 62px; border: 2px solid var(--ink); border-radius: 10px; background: #fff6df; padding: 0; overflow: hidden; }
.tm img { width: 50px; height: 50px; display: block; margin: 0 auto; }
.tm.cap { border-color: #ffd34d; box-shadow: 0 0 0 2px #b5520a, 0 0 12px #ffd34d; }
.tm.wait img, .tm.dead img { filter: grayscale(1); opacity: .6; }
.tm.dead { background: #c9a7a7; }
.tm-hp, .tm-mp { position: absolute; left: 2px; right: 2px; height: 5px; background: rgba(0,0,0,.35); border-radius: 3px; overflow: hidden; }
.tm-hp { bottom: 7px; } .tm-mp { bottom: 1px; }
.tm-hp i { display: block; height: 100%; background: #46e36b; } .tm-mp i { display: block; height: 100%; background: #4f8cff; }
.tm-state { position: absolute; top: 14px; left: 0; right: 0; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000; }
.skill-btns { position: absolute; right: 12px; bottom: 112px; width: 210px; height: 200px; }
.skb { position: absolute; border-radius: 50%; border: 3px solid var(--ink); background: linear-gradient(#fff3a0, #ffc21a); box-shadow: 0 4px 0 var(--ink); overflow: hidden; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.skb img { width: 70%; position: absolute; top: 4%; opacity: .95; }
.skb b { position: relative; z-index: 2; font-size: 11px; line-height: 1; background: rgba(74,42,28,.85); color: #fff; border-radius: 6px; padding: 1px 4px; margin-top: auto; max-width: 96%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skb small { position: relative; z-index: 2; font-size: 10px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.skb .cd { position: absolute; inset: 0; z-index: 1; background: conic-gradient(rgba(20,10,5,.65) calc(var(--p, 0) * 360deg), transparent 0); }
.skb.nomp::after { content: ''; position: absolute; inset: 0; background: rgba(40,60,120,.45); z-index: 1; }
.skb.ready { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 4px 0 var(--ink), 0 0 18px 4px #fff3a0; } }
.skb.ult { width: 104px; height: 104px; right: 0; bottom: 0; background: linear-gradient(#ff9a8a, #e8473c); }
.skb.small { width: 82px; height: 82px; right: 110px; bottom: 6px; }
.skb.dodge { width: 64px; height: 64px; right: 24px; bottom: 116px; background: linear-gradient(#d8f6ff, #6fc3ff); }
.skb.dodge b { margin-top: 0; font-size: 15px; }

/* ---------- modals in battle ---------- */
.cp-title { text-align: center; color: #fff; margin-bottom: 14px; }
.cp-title span { display: block; font-size: 40px; font-weight: 800; color: #ffe36a; text-shadow: 0 3px 0 #b5520a, 2px 2px 0 #4a2a1c, -2px -2px 0 #4a2a1c; }
.cp-title small { font-size: 16px; font-weight: 700; }
.cp-list { display: flex; gap: 10px; padding: 0 10px; }
.cp-card {
  position: relative; flex: 1; border: 3px solid var(--ink); border-radius: 16px; padding: 30px 8px 14px; box-shadow: 0 5px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; min-height: 250px;
  animation: flip .4s ease-out backwards;
}
.cp-card:nth-child(2) { animation-delay: .1s; } .cp-card:nth-child(3) { animation-delay: .2s; }
.cp-card:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.cp-rar { position: absolute; top: 6px; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.35); border-radius: 8px; padding: 0 8px; }
.cp-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 36px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink); margin-bottom: 8px; }
.cp-card b { font-size: 18px; text-shadow: 0 2px 0 var(--ink); line-height: 1.1; }
.cp-card small { font-size: 14px; font-weight: 700; margin-top: 6px; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.cp-card em { font-style: normal; font-size: 12px; margin-top: auto; background: #fff; color: var(--ink); border-radius: 8px; padding: 0 6px; }
.pause-modal, .result-modal { gap: 12px; }
.pause-modal h3 { font-size: 40px; color: #fff; text-shadow: 0 3px 0 #4a2a1c; }
.pause-modal .btn { min-width: 220px; }
.cp-mini { background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px; width: 380px; max-height: 300px; overflow-y: auto; font-size: 14px; }
.cp-mini small { display: block; color: #7a5a3a; }
.res-title { font-size: 64px; font-weight: 800; color: #ffe36a; text-shadow: 0 4px 0 #b5520a, 3px 3px 0 #4a2a1c, -3px -3px 0 #4a2a1c, 3px -3px 0 #4a2a1c, -3px 3px 0 #4a2a1c; animation: pop .5s ease-out; }
.lose .res-title { color: #c8c8d8; text-shadow: 0 4px 0 #3a3a5a, 3px 3px 0 #1a1a2a, -3px -3px 0 #1a1a2a, 3px -3px 0 #1a1a2a, -3px 3px 0 #1a1a2a; }
@keyframes pop { from { transform: scale(2); opacity: 0; } }
.res-stars span { font-size: 64px; color: #5a4a3a; text-shadow: 0 3px 0 #2a1a10; display: inline-block; }
.res-stars span.on { color: #ffd34d; animation: pop .4s ease-out backwards; text-shadow: 0 3px 0 #b5520a, 0 0 20px #fff3a0; }
.res-cond { list-style: none; padding: 0; margin: 0; color: #c9b9a9; font-weight: 700; }
.res-cond li::before { content: '✗ '; } .res-cond li.on { color: #b8ffb0; } .res-cond li.on::before { content: '✓ '; }
.res-reason { color: #fff; font-size: 20px; font-weight: 700; margin: 0; }
.result-modal .hint { color: #e9d9b9; max-width: 380px; }
.res-team { display: flex; gap: 6px; }
.res-team img { width: 56px; border-radius: 10px; background: var(--cream); border: 2px solid var(--ink); }
.res-rew { display: flex; gap: 8px; }
.res-rew span { background: var(--cream); border: 2px solid var(--ink); border-radius: 12px; padding: 2px 10px; font-weight: 800; }
.res-btns { display: flex; gap: 10px; margin-top: 8px; }

.toast { position: absolute; left: 50%; top: 45%; transform: translateX(-50%); z-index: 50; background: rgba(40,20,10,.88); color: #fff; padding: 8px 18px; border-radius: 14px; border: 2px solid #c9a227; font-weight: 700; animation: fadein .15s; pointer-events: none; }

/* ===== MÀN ĐÁNH NGANG (kiểu Võ Lâm Đại Minh Tinh) ===== */
.hud-top { top: 8px; left: 100px; right: 10px; }
.hud-top .gate-bar { position: static; flex: 1; display: flex; align-items: center; gap: 6px; background: rgba(40,20,10,.72); border: 2px solid #c9a227; border-radius: 12px; padding: 2px 10px; }
.hud-top .tool { position: static; }
.cp-owned { top: 46px; left: 100px; }
.hint-tap { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); background: rgba(40,20,10,.7); color: #fff3c4; font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 10px; pointer-events: none; white-space: nowrap; }
.team { left: 50%; right: auto; bottom: 6px; transform: translateX(-50%); flex-direction: row; gap: 8px; }
.tm { width: 74px; height: 84px; }
.tm img { width: 62px; height: 62px; }
.tm-key { position: absolute; top: 2px; left: 4px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000; }
.tm-ult { position: absolute; bottom: 13px; left: 0; right: 0; font-size: 10px; font-weight: 800; color: #fff; background: rgba(74,42,28,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.tm.ready { border-color: #ff7a2e; box-shadow: 0 0 0 2px #ffd34d, 0 0 16px #ff9a2e; animation: pulse 0.9s ease-in-out infinite; }
.tm.ready .tm-ult { background: linear-gradient(90deg, #e8473c, #ff9a2e); }
.tm.cap::before { content: '♛'; position: absolute; top: 0; right: 4px; color: #ffd34d; font-size: 15px; text-shadow: 0 1px 0 #7a2a1a; z-index: 2; }
.dp-card img { width: 110px; height: 110px; display: block; margin: 0 auto 4px; }
.tm-ammo { position: absolute; top: 34px; right: 4px; font-size: 15px; font-weight: 800; color: #fff3a0; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.tm-trong { position: absolute; top: 15px; left: 3px; font-size: 10px; font-weight: 800; color: #ffd34d; background: rgba(74,42,28,.85); border-radius: 5px; padding: 0 3px; }
.cp-reroll { margin-top: 14px; }
.cp-card .cp-por { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--ink); background: #fff6df; margin: 4px auto; display: block; }
.cp-mini i { font-style: normal; font-size: 11px; color: #b5520a; }
.ht-lv { display: flex; align-items: center; gap: 6px; min-width: 120px; }
.ht-lv b { color: #ffe14d; white-space: nowrap; }
.ht-lv .bar { flex: 1; height: 8px; background: rgba(0,0,0,.4); border-radius: 4px; overflow: hidden; display: block; }
.ht-lv .bar i { display: block; height: 100%; background: linear-gradient(90deg, #8ad0ff, #fff3a0); }
/* ===== Thiên Thư v2 (kiểu VLĐMT) ===== */
.cp-modal { justify-content: flex-start; padding-top: 18px; }
.cp-card { position: relative; }
.cp-card .cp-rar { font-size: 14px; }
.cp-card small i { display: block; margin-top: 4px; font-style: normal; opacity: .85; font-size: 11px; }
.lp-tag { display: inline-block; align-self: flex-start; margin: 2px 0 0 4px; padding: 0 8px; border-radius: 6px; background: var(--c); color: #fff; font-weight: 800; font-size: 12px; border: 2px solid var(--ink); text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.cp-rec { display: block; margin-top: auto; font-style: normal; font-size: 12px; font-weight: 800; background: rgba(40,20,10,.75); color: #fff; border-radius: 6px; padding: 1px 6px; }
.tg-step { display: block; margin-top: auto; font-style: normal; font-weight: 800; font-size: 16px; background: rgba(40,20,10,.8); color: #7dffb0; border-radius: 6px; padding: 1px 8px; }
.cp-side { position: absolute; right: 16px; top: 384px; display: flex; flex-direction: column; gap: 10px; }
.pick-foot { margin-top: 16px; display: flex; gap: 18px; background: rgba(40,20,10,.65); border: 2px solid #c9a227; border-radius: 12px; padding: 6px 12px; }
.pf-row { display: flex; align-items: center; gap: 6px; }
.pf-lab { writing-mode: vertical-rl; transform: rotate(180deg); color: #ffe58a; font-weight: 800; font-size: 12px; }
.pf-h { position: relative; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff6df; }
.pf-h img { width: 100%; height: 100%; }
.pf-h.off img { filter: grayscale(1); opacity: .6; }
.pf-h b { position: absolute; right: 1px; bottom: 0; font-size: 12px; color: #fff; background: #b5520a; border-radius: 5px; padding: 0 3px; }
.pf-c { width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; text-shadow: 0 1px 0 #000; box-shadow: inset 0 -5px 0 var(--c); }
.pf-c.empty { background: rgba(255,255,255,.15); border-style: dashed; box-shadow: none; }
.bg-modal { background: rgba(20,10,5,.96); z-index: 40; justify-content: flex-start; padding-top: 12px; overflow-y: auto; }
.bg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0 12px; width: 100%; }
.bg-col h4 { color: #ffe58a; text-align: center; margin: 4px 0; }
.bg-it { background: #fff6df; border: 2px solid var(--ink); border-radius: 8px; padding: 4px 6px; margin-bottom: 5px; opacity: .75; }
.bg-it.t1 { background: #d8ecff; } .bg-it.t2 { background: #ecdcff; }
.bg-it.own { opacity: 1; outline: 3px solid #3fb950; }
.bg-it b { font-size: 13px; } .bg-it i { font-style: normal; font-size: 11px; margin-left: 4px; color: #2a5fa8; }
.bg-it small { display: block; font-size: 10.5px; line-height: 1.2; }
.bg-lp { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #fff; font-size: 11.5px; padding: 8px 14px; }
.bg-modal .btn { margin-bottom: 10px; }
.cp-card.r3 { background: linear-gradient(#fff3c4, #ffb84a); }
.cp-card .evo-from { display: block; color: #8a3a00; margin-bottom: 3px; }
.bg-evo { margin-top: 3px; padding: 2px 4px; border-radius: 6px; background: #ffeec4; opacity: .8; font-size: 11px; }
.bg-evo.own { opacity: 1; outline: 2px solid #f2a218; }
.bg-evo small { display: block; }
.chap-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; }
.chap-tabs .btn { white-space: nowrap; flex: 0 0 auto; }
.chap-tabs small { opacity: .75; margin-left: 4px; }
.chap-story { margin: 2px 4px 8px; font-size: 14px; color: #6a4a2a; }

.meta-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 10px; overflow-y: auto; max-height: calc(100% - 120px); }
.meta-row { display: flex; align-items: center; gap: 12px; background: rgba(255,248,225,.9); border: 2px solid #c89a52; border-radius: 12px; padding: 8px 12px; }
.meta-row > div:first-child { flex: 1; } .meta-row small { margin-left: 8px; color: #8a6a3a; } .meta-row .bar { height: 6px; background: #e8d4a8; border-radius: 4px; margin-top: 4px; overflow: hidden; }
.meta-row .bar i { display: block; height: 100%; background: #46c46b; } .meta-row .rew { white-space: nowrap; font-weight: 700; }
.meta-top { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-weight: 700; }
.bt-sys h4 { margin: 4px 4px 4px; } .bt-sys h4 small { font-weight: 400; color: #6a4a2a; margin-left: 6px; } .bt-sys em { color: #c0392b; font-style: normal; font-weight: 800; }
.bt-cards { display: flex; gap: 6px; flex-wrap: wrap; } .bt-card { flex: 1 1 130px; background: #efe3c6; border: 2px solid #c9b88a; border-radius: 10px; padding: 6px 8px; opacity: .6; display: flex; flex-direction: column; gap: 2px; }
.bt-card.own { opacity: 1; background: #fff4d2; border-color: #e0a526; } .bt-card b { font-size: 14px; }

/* ===================== GIAO DIỆN MỚI (Codex vẽ: art/ui) ===================== */
.btn { border: 12px solid transparent; border-image: url(../art/ui/btn_wood.webp) 62 86 fill / 12px 18px stretch; padding: 4px 8px 6px; background: none; box-shadow: none; color: #ffe9b0; text-shadow: 0 2px 0 #2a140a; }
.btn.gold { border-image-source: url(../art/ui/btn_gold.webp); color: #4a2a0c; text-shadow: 0 1px 0 #fff3a0; }
.btn.red { border-image-source: url(../art/ui/btn_red.webp); color: #fff; text-shadow: 0 2px 0 #7a1a10; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; filter: brightness(.92); }
.btn.small { font-size: 14px; } .btn.big { font-size: 30px; padding: 10px 32px 12px; }
.resbar span { background: linear-gradient(#5a3420, #35200f); color: #ffe9b0; border: 2px solid #e0b040; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.topbar-menu { background: linear-gradient(#6a3a22, #3f2214); border-bottom: 3px solid #e0b040; margin: 0 -16px; padding: 8px 16px; color: #ffe9b0; }
.topbar-menu h2 { color: #ffe9b0; text-shadow: 0 2px 0 #2a140a; }

.home2 { background: transparent; }
.hm-top { position: absolute; left: 0; right: 0; top: 0; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(#5a3420ee, #35200fcc); border-bottom: 3px solid #e0b040; }
.hm-avatar { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #e0b040; background: #7a4a2a; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #35200f; }
.hm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hm-who { display: flex; flex-direction: column; flex: 1; line-height: 1.05; color: #ffe9b0; } .hm-who b { font-size: 17px; text-shadow: 0 2px 0 #2a140a; } .hm-who small { font-size: 12px; color: #ffd34d; }
.hm-logo { position: absolute; top: 62px; left: 0; right: 0; text-align: center; line-height: .85; pointer-events: none; }
.hm-logo span { display: block; font-weight: 800; letter-spacing: 2px; }
.hm-logo .l1 { font-size: 40px; color: #ffe36a; text-shadow: 0 3px 0 #b5520a, 0 5px 0 #4a2a1c, 2px 2px 0 #4a2a1c, -2px -2px 0 #4a2a1c, 2px -2px 0 #4a2a1c, -2px 2px 0 #4a2a1c, 0 8px 18px rgba(0,0,0,.4); }
.hm-logo .l2 { font-size: 32px; color: #fff; text-shadow: 0 3px 0 #a3181a, 0 5px 0 #4a2a1c, 2px 2px 0 #4a2a1c, -2px -2px 0 #4a2a1c, 2px -2px 0 #4a2a1c, -2px 2px 0 #4a2a1c; }
.hm-left { position: absolute; left: 12px; top: 74px; display: flex; flex-direction: column; gap: 10px; }
.hm-ic, .hm-idle, .hm-nav button { position: relative; background: none; border: none; display: flex; flex-direction: column; align-items: center; color: #fff; padding: 0; }
.hm-ic img { width: 54px; height: 54px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.hm-ic span, .hm-nav span { font-size: 12px; font-weight: 800; color: #ffe9b0; text-shadow: 0 2px 0 #2a140a, 0 0 6px #2a140a; margin-top: -2px; }
.dot { position: absolute; top: 0; right: 0; width: 14px; height: 14px; border-radius: 50%; background: #ff3b30; border: 2px solid #fff; }
.hm-idle { position: absolute; left: 14px; bottom: 90px; }
.hm-idle img { width: 70px; height: 70px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.hm-idle b, .hm-battle b { font-size: 14px; font-weight: 800; text-shadow: 0 2px 0 #2a140a; } .hm-idle small, .hm-battle small { font-size: 12px; font-weight: 700; color: #ffe9b0; text-shadow: 0 2px 0 #2a140a; background: rgba(53,32,15,.7); padding: 0 8px; border-radius: 10px; }
.hm-battle { position: absolute; right: 16px; bottom: 88px; background: none; border: none; display: flex; flex-direction: column; align-items: center; color: #fff; animation: hmPulse 1.6s ease-in-out infinite; }
.hm-battle img { width: 100px; height: 100px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.5)); } .hm-battle b { font-size: 22px; color: #ffe36a; margin-top: -4px; }
@keyframes hmPulse { 50% { transform: scale(1.06); } }
.hm-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; display: flex; justify-content: center; align-items: flex-end; gap: 26px; padding-bottom: 6px;
  background: linear-gradient(rgba(53,32,15,0), #35200fee 40%); border-top: 3px solid #e0b040; background-color: #35200fcc; }
.hm-nav button img { width: 50px; height: 50px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); transition: transform .1s; } .hm-nav button:active img { transform: scale(.92); }
.hm-reset { position: absolute; right: 8px; top: 62px; font-size: 11px; margin: 0; opacity: .6; }

html, body { height: 100dvh; min-height: 100dvh; background-color: #1f140e; }
.a2hs { position: absolute; left: 50%; transform: translateX(-50%); bottom: 82px; background: #fff6df; color: #4a2a1c; border: 3px solid #e0b040; border-radius: 12px; padding: 6px 12px; font-size: 13px; font-weight: 700; max-width: 520px; text-align: center; z-index: 9; }
.a2hs u { color: #c0392b; margin-left: 6px; }

/* ===================== HUD TRONG TRẬN (cùng phong cách art/ui) ===================== */
.hud-top { top: 0; left: 0; right: 0; height: 46px; padding: 0 10px; gap: 7px; background: linear-gradient(#6a3a22ee, #3f2214dd); border-bottom: 3px solid #e0b040; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.hud-top > div { background: linear-gradient(#4a1a14, #2e0f0b); border: 2px solid #e0b040; border-radius: 14px; color: #ffe9b0; padding: 0 10px; height: 28px; display: flex; align-items: center; font-size: 14px; text-shadow: 0 1px 0 #1a0a06; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.hud-top .ht-stage { flex: 0 1 auto; max-width: 190px; } .hud-top .ht-stage b { color: #ffd34d; margin-right: 5px; }
.hud-top .ht-wave { background: linear-gradient(#ffd34d, #e29a12); color: #4a2a0c; text-shadow: 0 1px 0 #fff3a0; border-color: #8a5a10; font-weight: 800; }
.hud-top .ht-lv { gap: 6px; } .hud-top .ht-lv .bar { width: 52px; height: 8px; }
.hud-top .gate-bar { flex: 1; height: 28px; padding: 0 10px; gap: 8px; } .hud-top .gate-bar .bar { height: 12px; background: #1a0a06; border: 1px solid #8a5a10; }
.hud-top .gate-bar span { font-size: 12px; text-shadow: 0 1px 0 #000; }
.hud-round { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 3px solid #8a5a10; background: radial-gradient(circle at 35% 30%, #fff3a0, #ffc21a 55%, #d98a0a); color: #4a2a0c; font-weight: 800; font-size: 13px; box-shadow: 0 2px 0 #4a2a0c; padding: 0; }
.hud-round:active { transform: translateY(2px); box-shadow: none; }
.hud-top .tool { height: 28px; padding: 0 12px; border: 2px solid #e0b040; border-radius: 14px; background: linear-gradient(#5a3420, #35200f); color: #ffe9b0; font-size: 13px; text-shadow: 0 1px 0 #1a0a06; box-shadow: 0 2px 0 #1a0a06; }
.hud-top .tool.on { background: linear-gradient(#ffe36a, #f2a218); color: #4a2a0c; text-shadow: none; border-color: #8a5a10; }
.cp-owned { top: 54px; left: 10px; } .hint-tap { top: 54px; background: rgba(53,32,15,.8); border: 2px solid #e0b040; color: #ffe9b0; }
.cpo { border-color: #35200f; box-shadow: 0 0 0 2px #e0b040; }

.team { bottom: 4px; gap: 6px; padding: 5px 8px 3px; background: linear-gradient(rgba(53,32,15,0), rgba(53,32,15,.75)); border-radius: 16px 16px 0 0; }
.tm { width: 78px; height: 88px; border: 3px solid #e0b040; border-radius: 13px; background: linear-gradient(#6a3a22, #35200f); box-shadow: 0 3px 0 #1a0a06, inset 0 1px 0 rgba(255,255,255,.18); }
.tm img { width: 60px; height: 60px; margin-top: 3px; border-radius: 10px; background: radial-gradient(circle at 50% 30%, #ffe9b0, #c9985a); border: 2px solid #8a5a10; }
.tm.cap { border-color: #fff3a0; box-shadow: 0 0 0 2px #b5520a, 0 0 14px #ffd34d, 0 3px 0 #1a0a06; }
.tm-ult { background: rgba(26,10,6,.85); color: #ffe9b0; bottom: 13px; }
.tm-hp, .tm-mp { background: #1a0a06; border: 1px solid #1a0a06; } .tm-hp { bottom: 8px; height: 6px; } .tm-mp { bottom: 2px; height: 5px; }
.tm-key { color: #ffe9b0; } .tm-ammo { top: 32px; right: 4px; font-size: 14px; }
.tm.ready { border-color: #fff3a0; box-shadow: 0 0 0 2px #ff7a2e, 0 0 18px #ffb02e, 0 3px 0 #1a0a06; }
.tm.ready::after { content: 'TUYỆT KỸ'; position: absolute; left: 0; right: 0; top: -1px; font-size: 9px; font-weight: 800; text-align: center; color: #4a2a0c; background: linear-gradient(90deg, #ffd34d, #ff9a2e, #ffd34d); }

/* ===== cửa sổ trong trận: cùng phong cách khung gỗ-vàng ===== */
.modal { background: radial-gradient(circle at 50% 40%, rgba(60,32,18,.82), rgba(14,6,3,.92)); }
.cp-card { border: 4px solid #e0b040; border-radius: 16px; box-shadow: 0 5px 0 #1a0a06, 0 0 0 2px #35200f, inset 0 0 0 3px rgba(0,0,0,.25); color: #4a2a1c; }
.cp-card.r1 { background: linear-gradient(#fff6df, #e9cd96); } .cp-card.r2 { background: linear-gradient(#f3e6ff, #c9a8f0); border-color: #b48ae0; } .cp-card.r3 { background: linear-gradient(#fff3b8, #f5b44a); border-color: #fff3a0; box-shadow: 0 5px 0 #1a0a06, 0 0 22px #ffc21a; }
.cp-card b { text-shadow: 0 1px 0 rgba(255,255,255,.6); color: #4a2a1c; } .cp-card small { text-shadow: none; color: #5a3a1c; }
.cp-rar { background: linear-gradient(#5a3420, #35200f); color: #ffe9b0; border: 2px solid #e0b040; }
.cp-icon, .cp-card .cp-por { border: 3px solid #8a5a10; background: radial-gradient(circle at 50% 30%, #fff, #f0d9a0); }
.cp-card em { background: #35200f; color: #ffe9b0; border: 1px solid #e0b040; }
.cp-title span { font-size: 36px; }
.bg-modal { background: radial-gradient(circle at 50% 30%, #4a2a18, #140804); }
.bg-it { background: #fff6df; border: 2px solid #c9985a; box-shadow: 0 2px 0 #35200f; } .bg-it.t1 { background: #f6e6c0; } .bg-it.t2 { background: #f0e0ff; border-color: #b48ae0; }
.bg-it.own { outline: 3px solid #e0b040; } .bg-it i { color: #8a5a10; } .bg-col h4 { color: #ffd34d; text-shadow: 0 2px 0 #1a0a06; border-bottom: 2px solid #e0b040; }
.cp-mini { background: linear-gradient(#fff6df, #e9cd96); border: 4px solid #e0b040; box-shadow: 0 4px 0 #1a0a06; }
.res-rew span, .res-team img { background: linear-gradient(#fff6df, #e9cd96); border: 2px solid #e0b040; }
.pause-modal h3, .res-title { filter: drop-shadow(0 4px 0 #1a0a06); }

.tutor { position: absolute; left: 50%; top: 62px; transform: translateX(-50%); z-index: 40; max-width: 520px; background: linear-gradient(#fff6df, #f0d9a0); color: #4a2a1c; border: 4px solid #e0b040; border-radius: 14px; padding: 8px 14px; font-size: 15px; font-weight: 700; box-shadow: 0 4px 0 #1a0a06, 0 0 24px rgba(255,200,80,.6); text-align: center; animation: pop .3s ease-out; }
.tutor > b:first-child { display: block; color: #b5520a; font-size: 13px; letter-spacing: 1px; } .tutor small { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.xfer { width: min(560px, 92%); background: linear-gradient(#fff6df, #ecd3a0); border: 4px solid #e0b040; border-radius: 16px; padding: 12px 16px; box-shadow: 0 5px 0 #1a0a06; display: flex; flex-direction: column; gap: 8px; }
.xfer h3 { font-size: 24px; text-align: center; } .xfer p, .xfer small { margin: 0; font-size: 13px; } .xfer textarea { height: 70px; font-size: 11px; border: 2px solid #c9985a; border-radius: 8px; resize: none; }
.g7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } .g7d { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 2px solid #c9985a; border-radius: 10px; background: #f6e6c0; font-size: 12px; }
.g7d.ok { background: linear-gradient(#fff3a0, #ffc21a); border-color: #8a5a10; animation: pulse 1s infinite; } .g7d.got { opacity: .55; } .g7d i { font-style: normal; font-size: 11px; font-weight: 800; }
.hm-acc { flex: none; height: 30px; padding: 0 12px; border: 2px solid #e0b040; border-radius: 14px; background: linear-gradient(#ffe36a, #f2a218); color: #4a2a0c; font-weight: 800; font-size: 13px; }

.res-stat { width: min(560px, 94%); background: linear-gradient(#fff6df, #ecd3a0); border: 3px solid #e0b040; border-radius: 12px; padding: 6px 10px; display: flex; flex-direction: column; gap: 3px; }
.rs-row { display: grid; grid-template-columns: 30px 120px 1fr 1fr 1fr; align-items: center; gap: 6px; font-size: 12px; }
.rs-row img { width: 28px; height: 28px; border-radius: 6px; border: 2px solid #8a5a10; } .rs-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-row.mvp { background: rgba(255,211,77,.35); border-radius: 8px; } .rs-row em { font-style: normal; color: #fff; background: #e8473c; border-radius: 6px; padding: 0 4px; font-size: 10px; }
.rs-b { position: relative; height: 14px; background: #d9c39a; border-radius: 7px; overflow: hidden; } .rs-b i { position: absolute; inset: 0 auto 0 0; }
.rs-b small { position: relative; font-size: 10px; font-weight: 800; padding-left: 4px; } .rs-b.d i { background: #ff8a4a; } .rs-b.t i { background: #8aa8ff; } .rs-b.h i { background: #5ad37a; }
.rs-leg { display: flex; gap: 12px; justify-content: flex-end; font-size: 11px; font-weight: 700; } .rs-leg .d { color: #d8582e; } .rs-leg .t { color: #4a6ad8; } .rs-leg .h { color: #2a9a4a; }
.result-modal { gap: 5px; justify-content: center; overflow-y: auto; padding: 6px 0; }
.result-modal .res-title { font-size: 40px; } .result-modal .res-stars span { font-size: 38px; }
.result-modal .res-cond { font-size: 13px; display: flex; gap: 14px; } .rs-row { grid-template-columns: 26px 110px 1fr 1fr 1fr; font-size: 11px; } .rs-row img { width: 24px; height: 24px; }
.result-modal .res-btns .btn { font-size: 16px; }

.eq-row { border-bottom: 1px solid #c9985a; padding: 4px 0; font-size: 13px; } .eq-row p { margin: 2px 0; font-size: 13px; }
.eq-cand { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; } .eq-cand .btn { font-size: 11px; }
.det-actions { flex-wrap: wrap; }

.tw-pairs { display: flex; gap: 12px; padding: 4px; } .tw-pair { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 4px solid #e0b040; border-radius: 14px; background: linear-gradient(#fff6df, #ecd3a0); box-shadow: 0 4px 0 #1a0a06; font-size: 16px; font-weight: 800; }
.tw-pair .boon { color: #2a9a4a; } .tw-pair .bane { color: #c0392b; } .tw-pair em { font-style: normal; font-size: 13px; color: #8a5a10; margin-top: 4px; }
.m30 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 0 4px; } .m30d { border: 2px solid #c9985a; border-radius: 8px; background: #f6e6c0; text-align: center; padding: 2px; font-size: 11px; line-height: 1.1; }
.m30d.got { opacity: .45; } .m30d.ok { background: linear-gradient(#fff3a0, #ffc21a); border-color: #8a5a10; } .m30d small { display: block; font-size: 9px; }
.meta-row.me { outline: 3px solid #e0b040; } .hm-nav { gap: 14px; } .hm-nav button img { width: 44px; height: 44px; }
.hm-left { gap: 2px; top: 62px; } .hm-ic img { width: 44px; height: 44px; } .hm-idle { bottom: 84px; } .hm-idle img { width: 58px; height: 58px; }

.chap-el { margin: 0 4px 8px; font-size: 13px; background: rgba(255,255,255,.55); border-radius: 10px; padding: 4px 10px; border: 2px solid #e0b040; }

/* nút HỢP KÍCH: hiện khi cặp tướng cùng đầy nộ */
.cx-btn { position: relative; height: 62px; min-width: 120px; margin-left: 8px; border: 2px solid #3a0a00; border-radius: 12px; padding: 2px 10px 2px 4px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #ffe58a, #ff9a2e); color: #3a0a00; font-weight: 900; cursor: pointer; animation: cxPulse .8s ease-in-out infinite alternate; box-shadow: 0 0 14px #ffcf3f; }
.cx-btn .cx-faces { display: flex; } .cx-btn .cx-faces img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: #fff6df; margin-right: -10px; }
.cx-btn b { display: block; font-size: 14px; letter-spacing: 1px; margin-left: 10px; } .cx-btn small { display: block; font-size: 10px; font-weight: 800; margin-left: 10px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-btn > b, .cx-btn > small { text-align: left; }
@keyframes cxPulse { from { transform: scale(1); box-shadow: 0 0 8px #ffcf3f; } to { transform: scale(1.06); box-shadow: 0 0 22px #ff9a2e; } }

/* ===== HUD trận v2 ===== */
.hud-top.hud2 { height: 52px; gap: 8px; }
.hud-top.hud2 > div { height: auto; background: none; border: 0; padding: 0; }
.h2-stage { display: flex; flex-direction: column; gap: 3px; min-width: 190px; max-width: 250px; }
.h2-name { font-size: 13px; color: #ffe9b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #000; }
.h2-name b { color: #ffd34d; margin-right: 4px; }
.hud-top.hud2 .h2-name .ht-wave { display: inline-block; height: auto; margin-left: 6px; padding: 0 7px; border-radius: 8px; font-size: 11px; background: linear-gradient(#ffd34d, #e29a12); color: #4a2a0c; border: 1px solid #8a5a10; text-shadow: none; }
.h2-waves { display: flex; gap: 2px; align-items: center; }
.h2-waves i { flex: 1; height: 7px; border-radius: 3px; background: #1a0a06; border: 1px solid #6a4a20; }
.h2-waves i.done { background: linear-gradient(#ffe58a, #e0a020); border-color: #ffd34d; }
.h2-waves i.cur { background: linear-gradient(#fff, #ffd34d); box-shadow: 0 0 6px #ffd34d; animation: hmPulse .8s infinite; }
.h2-waves i.boss { flex: 0 0 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #ff6a6a, #8a0a10); border: 2px solid #ffd34d; position: relative; }
.h2-waves i.boss::after { content: '☠'; position: absolute; inset: -2px 0 0; font-size: 10px; color: #fff; text-align: center; font-style: normal; }
.h2-waves i.boss.done { filter: grayscale(.7) brightness(.8); }
.hud-top.hud2 .h2-gate { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 120px; }
.h2-gico { font-size: 22px; filter: drop-shadow(0 2px 0 #000); }
.h2-gbar { position: relative; flex: 1; height: 18px; border-radius: 10px; background: #1a0a06; border: 2px solid #e0b040; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.h2-gbar i { display: block; height: 100%; background: linear-gradient(#9af07a, #3aa83a 60%, #1f7a2a); transition: width .25s; box-shadow: inset 0 3px 0 rgba(255,255,255,.3); }
.h2-gbar em { position: absolute; inset: 0; text-align: center; font: 800 12px/14px "Baloo 2", sans-serif; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; font-style: normal; }
.h2-gate.danger .h2-gbar { border-color: #ff4a4a; animation: gateDanger .6s infinite alternate; }
.h2-gate.danger .h2-gbar i { background: linear-gradient(#ff9a8a, #e0281a 60%, #8a0a0a); }
@keyframes gateDanger { to { box-shadow: 0 0 14px #ff2a2a, inset 0 2px 4px rgba(0,0,0,.6); } }
.hud-top.hud2 .h2-mini { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: #ffe9b0; font-size: 12px; font-weight: 800; text-shadow: 0 1px 0 #000; }
.h2-mini .ht-time { font-size: 15px; } .h2-lv { display: flex; align-items: center; gap: 4px; } .h2-lv .bar { width: 50px; height: 6px; background: #1a0a06; border-radius: 3px; overflow: hidden; display: block; } .h2-lv .bar i { display: block; height: 100%; background: linear-gradient(90deg, #8ad0ff, #fff3a0); }
.ic-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid #e0b040; background: radial-gradient(circle at 35% 30%, #7a4a2a, #2e1608); color: #ffe9b0; display: grid; place-items: center; padding: 0; position: relative; box-shadow: 0 3px 0 #1a0a04; cursor: pointer; font: 900 14px "Baloo 2", sans-serif; }
.ic-btn svg { width: 22px; height: 22px; } .ic-btn small { position: absolute; bottom: -12px; font-size: 9px; white-space: nowrap; color: #ffe9b0; text-shadow: 0 1px 0 #000; }
.ic-btn.on { background: radial-gradient(circle at 35% 30%, #fff3a0, #ffc21a 55%, #d98a0a); color: #4a2a0c; border-color: #8a5a10; box-shadow: 0 0 12px #ffcf3f, 0 3px 0 #6a4a0a; }
.ic-btn#bAuto.on svg { animation: spin 2s linear infinite; }
.ic-btn:active { transform: translateY(2px); box-shadow: none; }
/* thẻ tướng theo độ hiếm + vòng nộ */
.team .tm { width: 76px; height: 90px; border-radius: 14px; border: 0; background: linear-gradient(#3a2414, #1a0c06); overflow: visible; box-shadow: 0 0 0 2px #8a6a3a, 0 4px 0 #0a0402; }
.team .tm.r-SSR { box-shadow: 0 0 0 2px #ffd34d, 0 0 10px rgba(255,200,60,.6), 0 4px 0 #0a0402; background: linear-gradient(#6a3a0a, #2a1404); }
.team .tm.r-SR { box-shadow: 0 0 0 2px #c08aff, 0 0 8px rgba(180,120,255,.5), 0 4px 0 #0a0402; background: linear-gradient(#3a1a5a, #160a24); }
.team .tm.r-R { box-shadow: 0 0 0 2px #7ab8ff, 0 4px 0 #0a0402; background: linear-gradient(#14304a, #08141e); }
.team .tm img { position: relative; z-index: 2; width: 58px; height: 58px; margin: 7px auto 0; border-radius: 50%; object-fit: cover; background: #1a0c06; }
.tm-ring { position: absolute; z-index: 1; left: 50%; top: 4px; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%;
  background: conic-gradient(#5ab8ff calc(var(--mp, 0) * 1%), rgba(0,0,0,.55) 0); box-shadow: 0 0 0 1px #000; }
.tm.ready .tm-ring { background: conic-gradient(#ffd34d, #ff7a2e, #ffd34d, #ff7a2e, #ffd34d); animation: spin 1.4s linear infinite; box-shadow: 0 0 14px #ff9a2e; }
.tm-fire { position: absolute; z-index: 0; left: 6px; right: 6px; top: -18px; height: 50px; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 100%, rgba(255,160,40,.9), transparent 60%), radial-gradient(ellipse at 70% 100%, rgba(255,90,20,.9), transparent 60%), radial-gradient(ellipse at 50% 90%, rgba(255,230,120,.9), transparent 55%);
  filter: blur(3px); }
.tm.ready .tm-fire { opacity: 1; animation: tmFire .5s ease-in-out infinite alternate; }
@keyframes tmFire { from { transform: scaleY(.85) translateY(4px); } to { transform: scaleY(1.15) translateY(-3px); } }
.team .tm.ready { animation: tmShake 1.2s infinite; }
@keyframes tmShake { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(-3deg); } 88% { transform: rotate(3deg); } 92% { transform: rotate(-2deg); } }
.team .tm.pop { animation: tmPop .35s ease-out; }
@keyframes tmPop { 0% { transform: scale(1); } 35% { transform: scale(1.25) translateY(-8px); } 100% { transform: scale(1); } }
.team .tm .tm-mp { display: none; }
.team .tm .tm-hp { z-index: 3; left: 6px; right: 6px; bottom: 5px; height: 6px; border-radius: 3px; }
.team .tm .tm-ult { z-index: 3; bottom: 13px; left: 2px; right: 2px; border-radius: 6px; font-size: 9.5px; }
.team .tm.ready .tm-ult { background: linear-gradient(90deg, #e8473c, #ff9a2e); color: #fff; }
.team .tm .tm-key, .team .tm .tm-trong, .team .tm .tm-ammo, .team .tm .tm-state { z-index: 3; }
.team .tm.cap { box-shadow: 0 0 0 3px #ffd34d, 0 0 16px #ffcf3f, 0 4px 0 #0a0402; }
/* gợi ý bàn tay */
.hint-tap2 { position: absolute; bottom: 112px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 16px;
  background: rgba(20,10,4,.72); border: 1px solid #e0b040; color: #ffe9b0; font-size: 12px; font-weight: 700; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.hint-tap2 b { color: #ffd34d; } .hint-tap2 .hand { font-size: 18px; animation: handTap 1s ease-in-out infinite; }
.hint-tap2.gone { opacity: 0; }
@keyframes handTap { 50% { transform: translateY(5px) scale(.9); } }
@media (max-width: 760px) { .h2-stage { min-width: 130px; } .hud-top.hud2 .h2-mini { display: none; } .team .tm { width: 64px; height: 80px; } .team .tm img { width: 48px; height: 48px; } .tm-ring { width: 54px; height: 54px; margin-left: -27px; } }

.hud > * { transition: opacity .15s; } .hud.cine > * { opacity: 0; pointer-events: none; }   /* ẩn HUD khi phát cảnh cắt SSR */

.hcard.r-R { background: linear-gradient(#e6f2ff, #a8d0ff); }
.detail.r-R .det-art { background: radial-gradient(circle at 50% 60%, #fff, #cfe6ff 50%, #5a9cff); }
.r-R .pc-inner { background: var(--r); }

.skill.awaken { border-style: dashed; opacity: .75; } .skill.awaken.on { opacity: 1; border-style: solid; border-color: #ffd34d; box-shadow: 0 0 12px rgba(255,200,60,.6); background: linear-gradient(90deg, #fff6d0, #ffe7a0); }

.chap-traits { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; } .chap-traits .ct { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 12px; background: rgba(40,16,6,.78); border: 1px solid #e0b040; color: #ffe9b0; max-width: 360px; }
.chap-traits i { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #2a0f06; border: 2px solid #ffd34d; font-size: 14px; } .chap-traits b { font-size: 13px; white-space: nowrap; } .chap-traits small { font-size: 11px; opacity: .85; line-height: 1.2; }

.team .tm.dthanh .tm-trong { background: linear-gradient(90deg, #ffe58a, #ff9a2e); color: #4a1a00; box-shadow: 0 0 8px #ffcf3f; }
.team .tm.dthanh img { box-shadow: 0 0 0 2px #ffd34d, 0 0 12px #ffcf3f; }
.team .tm.wait .tm-trong, .team .tm.dead .tm-trong { display: none; }

/* ===== Thẻ tướng v3: huy hiệu tròn gọn ===== */
.team { bottom: 6px; gap: 12px; padding: 4px 14px 2px; background: radial-gradient(ellipse at 50% 100%, rgba(20,8,4,.6), rgba(20,8,4,0) 70%); border-radius: 40px 40px 0 0; }
.team .tm { width: 70px; height: 80px; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; padding: 0; }
.team .tm.r-SSR, .team .tm.r-SR, .team .tm.r-R, .team .tm.cap { background: none; box-shadow: none; }
.team .tm .tm-ring { top: 0; width: 68px; height: 68px; margin-left: -34px; box-shadow: 0 3px 6px rgba(0,0,0,.55); }
.team .tm img { position: absolute; z-index: 2; left: 50%; top: 5px; width: 58px; height: 58px; margin: 0 0 0 -29px; border-radius: 50%; }
.team .tm.r-SSR img { box-shadow: 0 0 0 2px #ffd34d, 0 0 0 3px #6a3a0a; } .team .tm.r-SR img { box-shadow: 0 0 0 2px #c08aff, 0 0 0 3px #2a1040; } .team .tm.r-R img { box-shadow: 0 0 0 2px #7ab8ff, 0 0 0 3px #0e2238; }
.team .tm .tm-hp { left: 12px; right: 12px; top: 71px; bottom: auto; height: 6px; border-radius: 3px; border: 1px solid #000; background: #1a0a06; }
.team .tm .tm-key { z-index: 4; top: auto; bottom: 14px; left: 1px; width: 18px; height: 18px; border-radius: 50%; background: #2a1408; border: 1.5px solid #e0b040; color: #ffe9b0; font-size: 10px; line-height: 15px; text-align: center; text-shadow: none; }
.team .tm .tm-trong { z-index: 4; top: 0; left: 2px; width: 20px; height: 20px; padding: 0; border-radius: 4px; transform: rotate(45deg); background: #3a1a08; border: 1.5px solid #e0b040; color: #ffd34d; font-size: 10px; line-height: 17px; text-align: center; }
.team .tm .tm-trong { display: block; } .team .tm .tm-trong:empty { display: none; }
.team .tm.dthanh .tm-trong { background: linear-gradient(#ffe58a, #ff9a2e); color: #4a1a00; border-color: #fff3c0; box-shadow: 0 0 8px #ffcf3f; }
.team .tm .tm-trong::first-letter { } .team .tm .tm-trong { writing-mode: horizontal-tb; }
.team .tm .tm-ammo { z-index: 4; top: auto; bottom: 14px; right: 1px; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 9px; background: #10243a; border: 1.5px solid #7ab8ff; color: #dff0ff; font-size: 10px; line-height: 15px; text-align: center; }
.team .tm .tm-ammo:empty { display: none; }
.team .tm .tm-state { z-index: 5; top: 5px; left: 50%; right: auto; width: 58px; height: 58px; margin-left: -29px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; line-height: 1.1; background: rgba(10,4,2,.55); padding: 0 4px; }
.team .tm .tm-state:empty { display: none; }
.team .tm .tm-ult { display: none; }
.team .tm.ready .tm-ult { display: block; z-index: 6; top: -20px; bottom: auto; left: -10px; right: -10px; padding: 2px 6px; border-radius: 9px; font-size: 9.5px; background: linear-gradient(90deg, #c22a1e, #ff8a2e); color: #fff; border: 1px solid #ffd34d; box-shadow: 0 0 10px rgba(255,140,40,.8); text-align: center; }
.team .tm .tm-fire { top: -16px; left: 0; right: 0; height: 44px; }
.team .tm.cap::before { content: '👑'; position: absolute; z-index: 6; top: -6px; right: 2px; font-size: 15px; filter: drop-shadow(0 1px 1px #000); transform: rotate(18deg); }
.team .tm.ready.cap::before { top: -26px; }
.team .tm.wait img, .team .tm.dead img { filter: grayscale(1) brightness(.75); opacity: 1; }
.team .tm.dead .tm-ring { background: #2a1010; }
@media (max-width: 760px) { .team { gap: 8px; } .team .tm { width: 58px; height: 70px; } .team .tm img { width: 48px; height: 48px; margin-left: -24px; } .team .tm .tm-ring { width: 56px; height: 56px; margin-left: -28px; } .team .tm .tm-state { width: 48px; height: 48px; margin-left: -24px; } .team .tm .tm-hp { top: 60px; } }
.team .tm .tm-trong { transform: none; border: 0; width: 22px; height: 22px; line-height: 22px; top: -1px; left: 1px; border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(#ffe58a, #c08a1a); color: #3a1404; font-weight: 900; }
.team .tm.dthanh .tm-trong { background: linear-gradient(#fff6c8, #ff9a2e); }

.cp-title .cp-ico { width: 46px; height: 46px; object-fit: contain; vertical-align: middle; margin-right: 8px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); animation: hmPulse 1.6s ease-in-out infinite; }

.buff-modal { display: grid; place-items: center; }
.buff-box { width: min(640px, 94vw); max-height: 86vh; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(#3a1c10, #1e0d07); border: 2px solid #e0b040; box-shadow: 0 10px 40px rgba(0,0,0,.6); color: #ffe9b0; }
.buff-body { overflow-y: auto; display: grid; gap: 10px; padding-right: 4px; }
.buff-body h4 { margin: 0 0 4px; color: #ffd34d; font-size: 14px; letter-spacing: .03em; border-bottom: 1px solid rgba(224,176,64,.35); padding-bottom: 3px; }
.buff-body .bf { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed rgba(224,176,64,.15); }
.buff-body .bf b { color: #fff3c0; } .buff-body .bf span { color: #e8d2b0; line-height: 1.35; min-width: 0; }
.buff-body .bf.num span { color: #8aff9a; font-weight: 800; }
.buff-body small { color: #c9a98a; }

/* cốt truyện đầu chương */
.story-ov { position: absolute; inset: 0; z-index: 60; background: linear-gradient(rgba(10,4,2,.35), rgba(10,4,2,.85)); cursor: pointer; overflow: hidden; }
.story-head { position: absolute; top: 14px; left: 0; right: 0; text-align: center; color: #ffe9b0; text-shadow: 0 2px 4px #000; }
.story-head small { display: block; color: #ffd34d; letter-spacing: .2em; font-size: 12px; } .story-head b { font-size: 24px; }
.story-por { position: absolute; bottom: 120px; height: 62%; max-width: 48%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); animation: storyIn .35s ease-out; }
.story-por.L { left: 4%; } .story-por.R { right: 4%; transform: scaleX(-1); }
@keyframes storyIn { from { opacity: 0; translate: 0 20px; } }
.story-box { position: absolute; left: 6%; right: 6%; bottom: 18px; min-height: 96px; padding: 14px 18px 26px; border-radius: 14px; background: rgba(30,12,6,.92); border: 2px solid #e0b040; color: #fff3dc; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.story-box.narr { text-align: center; font-style: italic; } .story-box p { margin: 0; font-size: 16px; line-height: 1.5; }
.story-name { position: absolute; top: -16px; left: 18px; padding: 2px 14px; border-radius: 8px; background: linear-gradient(#ffe58a, #e29a12); color: #3a1404; font-weight: 900; }
.story-box.R .story-name { left: auto; right: 18px; background: linear-gradient(#ff9a8a, #c0392b); color: #fff; }
.story-next { position: absolute; right: 14px; bottom: 6px; font-size: 12px; color: #ffd34d; animation: hmPulse 1s infinite; }
.story-skip { position: absolute; top: 12px; right: 14px; padding: 4px 12px; border-radius: 10px; border: 1px solid #e0b040; background: rgba(30,12,6,.8); color: #ffe9b0; font-weight: 700; cursor: pointer; }
/* thưởng chương */
.ch-rew { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; padding: 4px 10px 4px 4px; border-radius: 12px; background: rgba(255,220,120,.18); border: 1px dashed #c08a1a; width: fit-content; max-width: 100%; }
.ch-rew img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #e0b040; }
.res-hero { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 6px 0; padding: 8px; border-radius: 12px; background: rgba(255,220,120,.15); border: 1px solid #e0b040; }
.res-hero img { height: 90px; } .res-hero small { display: block; color: #c08a1a; } .res-hero b { font-size: 18px; } .res-hero em { display: block; color: #2a9a4a; font-style: normal; font-weight: 800; }
/* 81 nạn */
.nan-track { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 4px; }
.nan-track span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #3a2414; color: #c9a98a; font-weight: 800; border: 2px solid #6a4a20; }
.nan-track span.done { background: linear-gradient(#ffe58a, #c08a1a); color: #3a1404; border-color: #ffd34d; }
.nan-track span.cur { background: #c0392b; color: #fff; border-color: #ffd34d; box-shadow: 0 0 10px #ff8a5a; animation: hmPulse 1s infinite; }
.nan-track span.boss { border-radius: 8px; }
.story-ov { position: fixed; z-index: 300; } .story-head { top: max(14px, env(safe-area-inset-top, 0px)); }

/* hướng dẫn có tiêu điểm */
.coach { position: fixed; inset: 0; z-index: 400; }
.coach-dim { position: absolute; inset: 0; background: rgba(8,3,1,.62); }
.coach-hole { position: absolute; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(8,3,1,.62), 0 0 0 3px #ffd34d, 0 0 24px #ffcf3f; animation: coachPulse 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes coachPulse { 50% { box-shadow: 0 0 0 9999px rgba(8,3,1,.62), 0 0 0 5px #ffe58a, 0 0 36px #ffcf3f; } }
.coach-arrow { position: absolute; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; animation: coachBob .7s ease-in-out infinite alternate; }
.coach-arrow.up { border-bottom: 22px solid #ffd34d; } .coach-arrow.down { border-top: 22px solid #ffd34d; }
@keyframes coachBob { to { translate: 0 6px; } }
.coach-box { position: absolute; width: 340px; max-width: calc(100vw - 24px); display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: linear-gradient(#3a1c10, #1e0d07); border: 2px solid #e0b040; color: #ffe9b0; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.coach-box img { width: 64px; height: 64px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); border-radius: 10px; }
.coach-box b { display: block; color: #ffd34d; font-size: 16px; margin-bottom: 2px; } .coach-box p { margin: 0 0 8px; font-size: 13px; line-height: 1.45; } .coach-box p b { display: inline; font-size: inherit; color: #fff3c0; }
.coach-btns { display: flex; justify-content: space-between; gap: 8px; }
.coach-ok { border: 0; border-radius: 10px; padding: 6px 16px; font-weight: 900; background: linear-gradient(#ffe58a, #e29a12); color: #3a1404; cursor: pointer; }
.coach-skip { border: 0; background: none; color: #c9a98a; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* ===== TRANG CHỦ v3 ===== */
.home3 .hm-top { height: 54px; gap: 8px; }
.home3 .hm-acc, .home3 .hm-reset, .home3 .hm-battle, .home3 .hm-nav, .home3 .hm-idle { display: none !important; }
.hm-prof { display: flex; align-items: center; gap: 8px; background: rgba(30,12,6,.55); border: 1px solid rgba(224,176,64,.6); border-radius: 30px; padding: 3px 14px 3px 3px; cursor: pointer; margin-right: auto; }
.hm-prof .hm-avatar { position: relative; } .hm-prof .hm-who { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.hm-prof .hm-who b { color: #fff3c0; font-size: 14px; } .hm-prof .hm-who small { color: #ffd34d; font-weight: 800; font-size: 12px; }
.hm-cloud { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #2a1408; background: #888; }
.hm-cloud.ok { background: #3fd36b; } .hm-cloud.warn { background: #ffb02e; } .hm-cloud.off { background: #c0392b; }
.home3 .hm-logo { top: 58px; transform: scale(.78); transform-origin: top center; }
.home3 .hm-left { top: 66px; gap: 6px; }
.hm-right { position: absolute; right: 12px; top: 66px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.home3 .hm-ic img { width: 50px; height: 50px; }
.hm-idle2 small { font-size: 11px; color: #ffe9b0; font-weight: 800; text-shadow: 0 1px 0 #000; }
.hm-nav5 { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 0 max(8px, env(safe-area-inset-left, 0px)) 4px;
  background: linear-gradient(rgba(42,20,10,0), rgba(42,20,10,.92) 40%); border-top: 2px solid rgba(224,176,64,.6); }
.hm-nav5 button { position: relative; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 0; cursor: pointer; padding: 0; }
.hm-nav5 button img { width: 48px; height: 48px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); transition: transform .15s; }
.hm-nav5 button:active img { transform: scale(.9); }
.hm-nav5 span { font-size: 12px; font-weight: 800; color: #ffe9b0; text-shadow: 0 2px 0 #2a140a; white-space: nowrap; }
.hm-nav5 .hm-main { margin-top: -38px; } .hm-nav5 .hm-main img { width: 86px; height: 86px; filter: drop-shadow(0 0 12px rgba(255,190,60,.8)) drop-shadow(0 4px 3px rgba(0,0,0,.6)); animation: hmPulse 2s ease-in-out infinite; }
.hm-nav5 .hm-main span { font-size: 15px; color: #ffd34d; } .hm-nav5 .hm-main small { font-size: 10px; color: #ffe9b0; font-weight: 700; text-shadow: 0 1px 0 #000; }
.hm-nav5 .dot, .hm-right .dot { position: absolute; top: 2px; right: calc(50% - 26px); }
/* Thử Luyện */
.tr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px; }
.tr-card { position: relative; min-height: 130px; border-radius: 16px; border: 2px solid #e0b040; overflow: hidden; display: grid; grid-template-columns: 70px 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 14px;
  background: linear-gradient(90deg, rgba(30,12,6,.92) 30%, rgba(30,12,6,.35)), var(--bg) center / cover; color: #ffe9b0; cursor: pointer; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.tr-card:active { transform: translateY(2px); }
.tr-ic { grid-row: 1 / 4; } .tr-ic img { width: 66px; height: 66px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.tr-card b { font-size: 18px; color: #fff3c0; } .tr-card small { color: #ffd34d; font-weight: 800; } .tr-card em { font-style: normal; font-size: 12px; color: #e8d2b0; align-self: start; }
@media (max-width: 640px) { .tr-grid { grid-template-columns: 1fr; } }
.set-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
/* Thần Tướng: lưới gọn */
.hf-bar { display: grid; gap: 6px; margin-bottom: 8px; }
.hf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { border: 1px solid #c08a1a; background: #fff6dc; color: #5a3410; border-radius: 14px; padding: 3px 12px; font-weight: 800; font-size: 12px; cursor: pointer; }
.chip.on { background: linear-gradient(#ffe58a, #e29a12); color: #3a1404; border-color: #8a5a10; }
.hf-count { margin-left: auto; font-size: 12px; color: #6a4a2a; }
.hero-grid2, .pick-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.hc2 { position: relative; display: flex; flex-direction: column; align-items: stretch; border-radius: 12px; border: 2px solid #8a6a3a; background: #fff6dc; padding: 0 0 6px; overflow: hidden; cursor: pointer; text-align: center; }
.hc2.r-SSR { border-color: #e0a020; background: linear-gradient(#fff3c4, #ffe08a); box-shadow: 0 0 0 1px #fff3c0 inset; }
.hc2.r-SR { border-color: #9a5cff; background: linear-gradient(#f6ecff, #dcc0ff); } .hc2.r-R { border-color: #5a9cff; background: linear-gradient(#eef6ff, #c6e0ff); }
.hc2-img { display: block; aspect-ratio: 1; overflow: hidden; } .hc2-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc2.locked .hc2-img img { filter: grayscale(1) brightness(.6); } .hc2.locked { opacity: .8; }
.hc2.in { outline: 3px solid #2a9a4a; }
.hc2-rar { position: absolute; top: 4px; left: 4px; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 8px; background: rgba(30,12,6,.75); color: #ffd34d; }
.hc2.r-SR .hc2-rar { color: #e0c0ff; } .hc2.r-R .hc2-rar { color: #bfe0ff; }
.hc2-el { position: absolute; top: 4px; right: 4px; font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 8px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.hc2-in { position: absolute; top: 24px; right: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: #2a9a4a; color: #fff; font-size: 11px; font-weight: 900; line-height: 20px; }
.hc2 b { font-size: 12.5px; margin-top: 4px; color: #3a1a08; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc2 small { font-size: 10.5px; color: #6a4a2a; font-weight: 700; } .hc2-st { color: #e0a020; letter-spacing: -1px; } .hc2-st i { color: #c8b8a0; font-style: normal; }
.hc2 .dot { position: absolute; top: 4px; right: 4px; }
.lineup-slots .slot { overflow: visible; } .lineup-slots { padding-top: 12px; }
.hm-nav5 { height: 82px; padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)); align-items: end; }
.hm-nav5 button { justify-content: flex-end; height: 100%; }
.hm-nav5 button img { width: 44px; height: 44px; }
.hm-nav5 .hm-main { margin-top: 0; height: auto; } .hm-nav5 .hm-main img { width: 80px; height: 80px; margin-top: -30px; }
.pick-grid2 { align-content: start; align-self: start; }
.pick-grid2 .hc2 { align-self: start; }
.hm-nav5 { grid-template-rows: 100%; overflow: visible; }
.hm-nav5 button { height: auto; align-self: end; }

/* thanh tiến độ ải */
.hud-top.hud2 .h2-prog { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.h2-ptrack { position: relative; height: 14px; border-radius: 8px; background: #1a0a06; border: 2px solid #e0b040; box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.h2-ptrack > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffe58a, #ff9a2e); transition: width .3s linear; }
.h2-ptrack .pm { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #3a1a08; border: 2px solid #ffb02e; }
.h2-ptrack .pm.horde { border-color: #ff6a3a; } .h2-ptrack .pm.boss { width: 26px; height: 26px; font-size: 14px; background: radial-gradient(#ff5a5a, #7a0a10); border-color: #ffd34d; }
.h2-pcur { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px #fff; transition: left .3s linear; }
.h2-prog em { font-style: normal; font-size: 11px; font-weight: 800; color: #ffe9b0; text-shadow: 0 1px 0 #000; text-align: center; }
.h2-prog em.warn { color: #ff8a6a; animation: hmPulse .6s infinite; }
.h2-waves { display: none !important; }
.hud-top.hud2 .h2-prog { align-items: stretch; justify-content: center; } .h2-ptrack { width: 100%; }
.h2-ptrack .pm.done { filter: grayscale(1) brightness(.6); }

.ch-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; } .ch-box > span { font-weight: 900; color: #8a5a10; }
.ch-box .cb, .pull-box .pb { display: flex; flex-direction: column; align-items: center; min-width: 82px; padding: 4px 8px; border-radius: 10px; border: 2px solid #c08a1a; background: #fff6dc; font-weight: 800; cursor: pointer; }
.ch-box .cb b, .pull-box .pb b { font-size: 13px; } .ch-box .cb small, .pull-box .pb small { font-size: 10px; display: flex; gap: 2px; align-items: center; }
.ch-box .cb.ready, .pull-box .pb.ready { background: linear-gradient(#ffe58a, #ffb02e); box-shadow: 0 0 10px #ffcf3f; animation: hmPulse 1s infinite; }
.ch-box .cb.done, .pull-box .pb.done { opacity: .5; } .ch-box .cb:disabled:not(.done), .pull-box .pb:disabled:not(.done) { opacity: .75; cursor: default; }
.pull-box { margin: 8px 0; } .pull-box > div { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.eq-up { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; } .eq-pl { font-style: normal; color: #2a9a4a; }

.pb-list { display: grid; gap: 8px; }
.pb-row { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff6dc; border: 2px solid #c08a1a; }
.pb-row b { font-size: 17px; display: block; } .pb-row small { color: #8a6a4a; } .pb-row .rew { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-weight: 800; }
.pb-row.locked { opacity: .6; filter: grayscale(.5); }
@media (max-width: 640px) { .pb-row { grid-template-columns: 1fr auto; } .pb-row .rew { grid-column: 1 / -1; } }

/* ===== chi tiết tướng 2 cột ===== */
.hd-wrap { display: grid; grid-template-columns: minmax(220px, 36%) 1fr; gap: 12px; align-items: start; }
.hd-left { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #fff, #cfe6ff 60%, #7ab0ff); border: 3px solid #3a2414; text-align: center; }
.hd-wrap.r-SR .hd-left { background: radial-gradient(circle at 50% 40%, #fff, #e4c8ff 60%, #9a5cff); } .hd-wrap.r-SSR .hd-left { background: radial-gradient(circle at 50% 40%, #fff, #ffe9a8 60%, #f2a218); }
.hd-art img { height: 240px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.hd-name { display: flex; align-items: center; gap: 6px; } .hd-name h3 { margin: 0; } .hd-pw { font-weight: 900; color: #3a1a08; }
.hd-nav { position: absolute; top: 40%; left: 6px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #3a2414; background: #fff6dc; font-size: 22px; font-weight: 900; cursor: pointer; z-index: 2; }
.hd-nav.r { left: auto; right: 6px; } .hd-nav:disabled { opacity: .3; }
.hd-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hd-tabs { display: flex; gap: 6px; flex-wrap: wrap; } .hd-tabs button { flex: 1; min-width: 90px; padding: 8px 6px; border-radius: 10px; border: 2px solid #c08a1a; background: #fff6dc; font-weight: 900; cursor: pointer; }
.hd-tabs button.on { background: linear-gradient(#ffe58a, #e29a12); color: #3a1404; }
.hd-body { padding: 10px; border-radius: 12px; background: #fffaf0; border: 2px solid #e8d2a0; display: grid; gap: 8px; }
.hd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .hd-stats div { text-align: center; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid #e8d2a0; } .hd-stats span { display: block; font-size: 11px; color: #8a6a4a; } .hd-stats b { font-size: 16px; }
.hd-skills { display: grid; gap: 6px; } .hs { padding: 6px 10px; border-radius: 10px; background: #fff; border-left: 4px solid #c08a1a; } .hs.ult { border-left-color: #e8473c; }
.hs i { display: block; font-style: normal; font-size: 11px; color: #8a6a4a; } .hs p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; }
.hd-up { display: grid; gap: 8px; } .hu-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #e8d2a0; flex-wrap: wrap; }
.hu-row small { display: block; color: #6a4a2a; } .hu-row.on { border-color: #ffd34d; box-shadow: 0 0 10px rgba(255,200,60,.6); } .hu-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.em, .up { color: #2a9a4a; font-style: normal; font-weight: 800; }
.hd-eq { display: grid; gap: 6px; } .he { padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid #e8d2a0; } .he i { font-style: normal; font-size: 11px; color: #8a6a4a; display: block; } .he em { color: #2a9a4a; font-style: normal; }
.hb { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #e8d2a0; } .hb .lvl { color: #c08a1a; font-weight: 900; } .hb p { margin: 4px 0; font-size: 12.5px; }
.hb-m { display: flex; gap: 4px; margin-top: 4px; } .hb-m img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c08a1a; } .hb-m img.off { filter: grayscale(1); opacity: .5; }
.hb-bar { height: 6px; border-radius: 3px; background: #eadbc0; overflow: hidden; } .hb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, #ff9a2e); }
@media (max-width: 700px) { .hd-wrap { grid-template-columns: 1fr; } .hd-art img { height: 180px; } .hd-stats { grid-template-columns: repeat(2, 1fr); } }
/* màn chọn ải: khối thông tin chương 2 cột gọn */
.ch-info { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin: 4px 0 10px; }
.ci-col { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(255,246,220,.85); border: 2px solid #e0b040; min-width: 0; }
.ci-h { font-size: 12px; letter-spacing: .05em; color: #8a5a10; text-transform: uppercase; }
.ch-info .chap-el { margin: 0; padding: 0; border: 0; background: none; font-size: 12.5px; line-height: 1.35; }
.ch-info .chap-traits { margin: 0; gap: 4px; } .ch-info .chap-traits .ct { padding: 2px 8px 2px 2px; } .ch-info .chap-traits small { display: none; } .ch-info .chap-traits i { width: 22px; height: 22px; font-size: 12px; }
.ch-info .ch-box { margin: 0; } .ch-info .ch-box .cb { min-width: 70px; padding: 3px 6px; }
.ch-info .ch-rew { margin: 0; border: 0; background: none; padding: 0; }
@media (max-width: 700px) { .ch-info { grid-template-columns: 1fr; } }
.ch-info .ch-box { flex-wrap: nowrap; } .ch-info .ch-box .cb { flex: 1; min-width: 0; } .ch-info .ch-box .cb small { flex-wrap: wrap; justify-content: center; }
.q-tabs { align-items: center; margin-bottom: 8px; } .q-tabs .q-all { flex: 0 0 auto; border-radius: 10px; border: 2px solid #2a7a3a; background: #e6f6e6; font-weight: 900; padding: 8px 14px; cursor: pointer; } .q-tabs .q-all.on { background: linear-gradient(#8aef9a, #2a9a4a); color: #fff; } .q-tabs .q-all:disabled { opacity: .5; }
.q-tabs .dot { position: static; display: inline-block; vertical-align: middle; }
.q-list { display: grid; gap: 6px; }
.q-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: #fff6dc; border: 2px solid #e0c080; }
.q-row.done { border-color: #2a9a4a; background: #f0fff0; } .q-row.got { opacity: .55; }
.q-main { min-width: 0; } .q-main b { display: block; font-size: 14px; } .q-main .bar { height: 6px; border-radius: 3px; background: #eadbc0; overflow: hidden; margin-top: 4px; } .q-main .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, #2a9a4a); }
.q-row small { font-weight: 800; color: #6a4a2a; } .q-row .rew { display: flex; gap: 4px; align-items: center; font-weight: 800; }

.fb-slots { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .fb-slots .hint { flex: 1; min-width: 200px; margin: 0; }
.fb-slot { width: 110px; height: 110px; border-radius: 16px; border: 3px dashed #c08a1a; background: #fff6dc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.fb-slot.on { border-style: solid; background: radial-gradient(#fff, #ffe9a8); box-shadow: 0 0 12px rgba(255,200,60,.6); } .fb-slot img { width: 56px; height: 56px; object-fit: contain; } .fb-slot i { font-size: 30px; font-style: normal; color: #c08a1a; } .fb-slot b { font-size: 11px; } .fb-slot small { font-size: 10px; }
.fb-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.fb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fb-it { position: relative; aspect-ratio: 1; border-radius: 14px; border: 3px solid var(--qc); background: radial-gradient(#fff, #f3e6c8); cursor: pointer; padding: 4px; }
.fb-it img { width: 100%; height: 100%; object-fit: contain; } .fb-it.locked img { filter: grayscale(1) brightness(.6); opacity: .6; } .fb-it.sel { box-shadow: 0 0 0 3px #3a2414, 0 0 14px var(--qc); } .fb-it.eq::after { content: '✓'; position: absolute; top: 2px; left: 6px; color: #2a9a4a; font-weight: 900; }
.fb-it span { position: absolute; right: 4px; bottom: 2px; font-size: 12px; font-weight: 900; color: #fff; background: var(--qc); border-radius: 8px; padding: 0 5px; }
.fb-info { padding: 12px; border-radius: 14px; background: #fffaf0; border: 2px solid #e8d2a0; text-align: center; display: grid; gap: 4px; justify-items: center; }
.fb-info img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); } .fb-info h3 { margin: 0; } .fb-eff { font-weight: 900; color: #2a7a3a; margin: 4px 0; } .fb-next { font-size: 12px; color: #8a6a4a; margin: 0 0 6px; }
@media (max-width: 700px) { .fb-main { grid-template-columns: 1fr; } }
/* icon hệ phái / ngũ hành */
.sys-ico { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 3px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.tag .sys-ico { width: 16px; height: 16px; margin: -2px 3px 0 -4px; }
.hc2-sys { position: absolute; top: 3px; right: 3px; display: flex; flex-direction: column; gap: 1px; } .hc2-sys .sys-ico { width: 22px; height: 22px; margin: 0; }
.team .tm .tm-role { position: absolute; z-index: 5; top: 44px; right: 2px; width: 20px; height: 20px; margin: 0; }

/* ===== quay ra SSR ===== */
.ssr-rv { position: fixed; inset: 0; z-index: 80; background: #0a0414; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ssr-rv .rv-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.15); transition: opacity .6s, transform 3s ease-out; }
.ssr-rv .rv-rays { position: absolute; width: 220vmax; height: 220vmax; background: repeating-conic-gradient(from 0deg, rgba(255,214,90,.28) 0 6deg, transparent 6deg 18deg); animation: rvspin 8s linear infinite; opacity: .5; }
@keyframes rvspin { to { transform: rotate(360deg); } }
.ssr-rv .rv-card { position: relative; width: 150px; height: 210px; border-radius: 14px; background: linear-gradient(135deg, #fff3b0, #f2a218 45%, #a85a08); border: 4px solid #fff6d0; box-shadow: 0 0 40px #ffcf3f, 0 0 90px #ff9a2e; display: flex; align-items: center; justify-content: center; animation: rvshake .12s infinite alternate .4s; }
.ssr-rv .rv-card b { font-size: 46px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 #a85a08, 0 0 20px #fff; letter-spacing: 2px; }
.ssr-rv .rv-card i { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.9) 48%, transparent 60%); background-size: 250% 100%; animation: rvshine 1s linear infinite; border-radius: 10px; }
@keyframes rvshine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes rvshake { from { transform: rotate(-2deg) scale(1); } to { transform: rotate(2deg) scale(1.04); } }
.ssr-rv.burst .rv-card { animation: rvburst .45s ease-out forwards; }
@keyframes rvburst { 0% { transform: scale(1); filter: brightness(1); } 40% { transform: scale(1.3); filter: brightness(3); } 100% { transform: scale(4); opacity: 0; filter: brightness(5); } }
.ssr-rv.burst .rv-bg { opacity: .85; transform: scale(1); }
.ssr-rv .rv-hero { position: absolute; height: 92vh; max-width: 70vw; object-fit: contain; left: 4vw; bottom: -2vh; opacity: 0; transform: translateX(-40px) scale(.95); transition: all .7s cubic-bezier(.2,1.4,.4,1) .25s; filter: drop-shadow(0 0 24px rgba(255,210,90,.8)); }
.ssr-rv.burst .rv-hero { opacity: 1; transform: none; }
.ssr-rv .rv-name { position: absolute; right: 5vw; bottom: 18vh; text-align: right; color: #fff; opacity: 0; transform: translateX(40px); transition: all .6s .6s; }
.ssr-rv.burst .rv-name { opacity: 1; transform: none; }
.ssr-rv .rv-name h2 { margin: 0; font-size: clamp(34px, 6vw, 64px); font-weight: 900; color: #ffe58a; text-shadow: 0 4px 0 #7a3a04, 0 0 24px #ff9a2e; }
.ssr-rv .rv-name small { font-size: 16px; color: #ffe; text-shadow: 0 2px 4px #000; } .ssr-rv .rv-name em { display: block; font-style: normal; font-weight: 800; color: #fff; text-shadow: 0 2px 4px #000; }
.ssr-rv .rv-tap { position: absolute; bottom: 4vh; width: 100%; text-align: center; color: #fff; opacity: 0; font-weight: 800; text-shadow: 0 2px 4px #000; }
.ssr-rv.ready .rv-tap { opacity: .85; animation: rvblink 1.2s infinite; } @keyframes rvblink { 50% { opacity: .3; } }
/* viền thẻ SSR có ánh sáng chạy quanh */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hc2.r-SSR, .pcard.r-SSR .pc-inner { position: relative; }
.hc2.r-SSR::after, .pcard.r-SSR .pc-inner::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, #fff6c0 80%, #ffcf3f 88%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ssrRim 2.4s linear infinite; }
@keyframes ssrRim { to { --ang: 360deg; } }
.ssr-rv.burst .rv-rays { opacity: .22; }
.chip .sys-ico { width: 16px; height: 16px; margin: -2px 3px 0 -2px; } .hc2-sys .sys-ico { width: 20px; height: 20px; }

/* ===== phẩm 6 bậc ===== */
.rar-UR { background: linear-gradient(90deg, #ff3a3a, #ff9a2e, #ffe14d, #ff3a3a); background-size: 300% 100%; animation: urShift 3s linear infinite; color: #fff; text-shadow: 0 1px 0 #7a0a0a; }
.rar-SSRP { background: linear-gradient(135deg, #ff8a1a, #ffcf3f); color: #fff; }
.rar-A { background: #7a8590; }
@keyframes urShift { to { background-position: 300% 0; } }
.hc2.t-UR { background: linear-gradient(160deg, #fff3e0, #ffb3a0); border-color: #e8323c; box-shadow: 0 0 12px rgba(232,50,60,.55); }
.hc2.t-UR::after { background: conic-gradient(from var(--ang), transparent 0 55%, #fff 65%, #ff4a4a 75%, #ffcf3f 85%, transparent 95%) !important; animation-duration: 1.6s !important; }
.hc2.t-SSRP { background: linear-gradient(160deg, #fff8e0, #ffd890); border-color: #ff9a1a; }
.hc2.t-A { background: linear-gradient(160deg, #f4f4f4, #cfd5da); border-color: #8a949c; }
.hd-wrap.t-UR .hd-left { background: radial-gradient(circle at 50% 40%, #fff, #ffc0a8 55%, #e8323c); box-shadow: 0 0 24px rgba(232,50,60,.5); }
.hd-wrap.t-SSRP .hd-left { background: radial-gradient(circle at 50% 40%, #fff, #ffe0a0 55%, #ff9a1a); }
.hd-wrap.t-A .hd-left { background: radial-gradient(circle at 50% 40%, #fff, #e4e8eb 60%, #9aa4ab); }
.hc2.t-UR .hc2-rar { color: #fff; background: linear-gradient(90deg, #e8323c, #ff9a2e); } .hc2.t-SSRP .hc2-rar { color: #ffd34d; } .hc2.t-A .hc2-rar { color: #d0d6da; }

/* ===== UR ===== */
.ic-thanhan { background: url(../art/ui/ic_thanhan.webp) center/contain no-repeat; border: 0; }
.hu-row.ur { border-color: #e8323c; background: linear-gradient(90deg, #fff3ec, #fff); } .hu-row.ur.on { box-shadow: 0 0 12px rgba(232,50,60,.45); }
.td-head { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, #3a0a0a, #7a1a10); color: #ffe8c0; margin-bottom: 10px; }
.td-head img { width: 56px; height: 56px; object-fit: contain; } .td-head b { font-size: 20px; color: #ffe58a; display: block; } .td-head small { color: #ffd8b0; }
.td-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.td-card { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 10px; border-radius: 16px; background: radial-gradient(circle at 20% 40%, #fff, #ffc0a8 60%, #e8323c); border: 3px solid #7a0a0a; box-shadow: 0 0 18px rgba(232,50,60,.45); }
.td-art img { width: 100%; height: 180px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); } .td-info h3 { margin: 4px 0 0; } .td-info p { font-size: 12.5px; margin: 4px 0; }
.ur-rv { background: #050008; } .ur-rv .rv-card { background: linear-gradient(135deg, #fff, #ff5a3a 40%, #7a0a0a); box-shadow: 0 0 50px #ff3a3a, 0 0 120px #ffcf3f; }
.ur-rv .rv-rays { background: repeating-conic-gradient(from 0deg, rgba(255,80,60,.3) 0 5deg, transparent 5deg 15deg); }
.ur-rv .rv-name h2 { background: linear-gradient(90deg, #ff3a3a, #ffcf3f, #fff3b0, #ff3a3a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: urShift 3s linear infinite; text-shadow: none; filter: drop-shadow(0 3px 0 #3a0404) drop-shadow(0 0 18px #ff5a3a); }
.ur-bolt { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent 46%, rgba(255,255,255,.95) 48%, rgba(255,200,120,.6) 49%, transparent 52%); }
.ur-rv .ur-bolt.b1 { animation: urBolt 2.2s .2s infinite; } .ur-rv .ur-bolt.b2 { transform: scaleX(-1); animation: urBolt 2.6s .9s infinite; }
@keyframes urBolt { 0%, 8%, 100% { opacity: 0; } 2%, 5% { opacity: 1; } }

/* ===== UR+ ===== */
.rar-URP { background: linear-gradient(90deg, #6a2aff, #ff3a8a, #ffcf3f, #3affd0, #6a2aff); background-size: 400% 100%; animation: urShift 2.2s linear infinite; color: #fff; text-shadow: 0 1px 0 #20003a; }
.hc2.t-URP { background: linear-gradient(160deg, #2a0a3a, #6a2aa0 55%, #ffcf6a); border-color: #ffcf3f; box-shadow: 0 0 16px rgba(160,80,255,.7); }
.hc2.t-URP b, .hc2.t-URP small { color: #fff3c0; }
.hc2.t-URP::after { background: conic-gradient(from var(--ang), transparent 0 50%, #fff 60%, #c070ff 70%, #ffcf3f 80%, #3affd0 88%, transparent 95%) !important; animation-duration: 1.3s !important; }
.hc2.t-URP .hc2-rar { color: #fff; background: linear-gradient(90deg, #6a2aff, #ff3a8a); }
.hd-wrap.t-URP .hd-left { background: radial-gradient(circle at 50% 40%, #fff, #c8a0ff 50%, #3a0a5a); box-shadow: 0 0 28px rgba(160,80,255,.6); }
.hd-wrap.t-URP .hd-left h3, .hd-wrap.t-URP .hd-left small, .hd-wrap.t-URP .hd-pw { color: #fff3c0; }

/* ===================== HUD kiểu VLĐMT (home4 + tb4) ===================== */
.home4 { --ink: #1a1410; --jade: #2e9b7c; --jade2: #1d6e57; }
.home4 .dot, .h4-c .dot, .h4-track .dot { position: absolute; top: 0; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #e8302a; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.h4-prof { position: absolute; left: 8px; top: 6px; display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.h4-av { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 2px solid #f0e2c0; background: #3a2a20; box-shadow: 0 2px 6px rgba(0,0,0,.5); flex: none; }
.h4-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.h4-av em { position: absolute; left: -3px; top: -3px; width: 20px; height: 20px; border-radius: 50%; background: #1a1410; border: 1.5px solid #f0e2c0; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; }
.h4-who { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: baseline; text-align: left; line-height: 1.1; padding: 4px 26px 6px 10px; background: linear-gradient(90deg, rgba(10,8,6,.75), rgba(10,8,6,.45) 75%, transparent); clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
.h4-who small { font-size: 10px; color: #e8d8b0; font-weight: 700; }
.h4-who b { font-size: 19px; color: #ffd34d; text-shadow: 0 1px 0 #000; }
.h4-who i { grid-column: 1 / 3; font-style: normal; font-size: 12px; color: #fff; font-weight: 700; }
.h4-who u { grid-column: 1 / 3; display: block; height: 4px; margin-top: 3px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; text-decoration: none; }
.h4-who u s { display: block; height: 100%; background: linear-gradient(90deg, #4fd38a, #b6f05a); text-decoration: none; }
.h4-side { position: absolute; left: 14px; top: 76px; display: flex; flex-direction: column; gap: 4px; }
.h4-ic { position: relative; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; width: 58px; }
.h4-ic img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); transition: transform .12s; }
.h4-ic:active img { transform: scale(.88); }
.h4-ic span { font-size: 11px; font-weight: 800; color: #fff; white-space: nowrap; text-shadow: 0 0 3px #000, 0 1px 1px #000, 0 0 6px rgba(0,0,0,.8); margin-top: -2px; }
.h4-ic small { font-size: 10px; color: #ffe9b0; font-weight: 800; text-shadow: 0 1px 1px #000; display: flex; align-items: center; gap: 2px; }
.h4-ic small .ic { width: 11px; height: 11px; }
.h4-side .h4-ic img { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: rgba(12,10,8,.62); border: 1.5px solid rgba(240,226,192,.55); }
.home4 > .resbar { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; }
.home4 > .resbar span, .tb4 .resbar span { display: flex; align-items: center; gap: 4px; min-width: 74px; height: 24px; padding: 0 10px 0 4px; border-radius: 3px; border: 0; background: linear-gradient(90deg, rgba(8,6,4,.72), rgba(8,6,4,.5)); color: #fff; font-size: 13px; font-weight: 800; box-shadow: none; }
.h4-acts { position: absolute; right: 8px; top: 40px; display: flex; gap: 2px; }
.h4-acts .h4-ic img { width: 42px; height: 42px; }
.h4-cards { position: absolute; right: 10px; top: 112px; width: 360px; display: flex; flex-direction: column; gap: 6px; }
.h4-main, .h4-c { position: relative; border: 2px solid #1a1410; border-radius: 3px; background-color: #3a2a20; background-position: center; background-size: cover; background-repeat: no-repeat; cursor: pointer; overflow: hidden; box-shadow: 0 3px 8px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(255,236,190,.55); padding: 0; transition: transform .12s, filter .12s; }
.h4-main:active, .h4-c:active { transform: scale(.98); filter: brightness(.95); }
.h4-main { height: 172px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; padding: 10px 12px; text-align: right; }
.h4-main::before { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(10,6,4,.78) 0%, rgba(10,6,4,.2) 45%, transparent 60%, rgba(10,6,4,.7) 100%); }
.h4-main > * { position: relative; }
.h4-main b { font-size: 21px; color: #fff; font-weight: 800; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0,0,0,.8); }
.h4-main small { font-size: 12px; color: #ffe9b0; font-weight: 700; text-shadow: 0 1px 2px #000; max-width: 300px; }
.h4-go { position: absolute; right: 0; bottom: 10px; padding: 6px 18px 6px 34px; font-size: 16px; font-weight: 800; color: #fff3c0; background: linear-gradient(90deg, transparent, rgba(150,20,10,.9) 22%, #b5261a); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); text-shadow: 0 1px 0 #3a0a04; animation: h4go 1.8s ease-in-out infinite; }
@keyframes h4go { 50% { filter: brightness(1.25); } }
.h4-sub { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px; }
.h4-c { height: 88px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px 10px; }
.h4-c::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,6,4,.75)); }
.h4-c > * { position: relative; }
.h4-c b { font-size: 18px; color: #fff; font-weight: 800; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.h4-c > img { position: absolute; left: 8px; top: 8px; width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.h4-c > img.h4-fh { left: -10px; top: -14px; width: 150px; height: 150px; object-fit: contain; object-position: left top; }
.h4-c .dot { position: absolute; top: 4px; right: 4px; z-index: 2; }
.h4-track { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 22px 0 4px; border: 0; background: linear-gradient(90deg, rgba(10,8,6,.75), rgba(10,8,6,.45) 80%, transparent); clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); cursor: pointer; }
.h4-track img { width: 26px; height: 26px; }
.h4-track span { font-size: 13px; color: #fff; font-weight: 700; } .h4-track em { font-style: normal; font-size: 13px; font-weight: 800; color: #7dff9a; }
.h4-track .dot { position: static; width: 9px; height: 9px; }
.h4-nav { position: absolute; right: 8px; bottom: 4px; display: flex; gap: 6px; }
.h4-nav .h4-ic { width: 64px; } .h4-nav .h4-ic img { width: 44px; height: 44px; }

/* thanh tiêu đề màn con */
.topbar-menu.tb4 { height: 46px; padding: 0 10px 0 0; margin: 0 -16px; background: linear-gradient(90deg, #13211c 0%, #1d3a30 32%, rgba(29,58,48,.88) 55%, rgba(19,33,28,.82)); border: 0; box-shadow: 0 2px 0 rgba(0,0,0,.25); gap: 4px; color: #fff; }
.tb4-back { flex: none; width: 74px; height: 46px; border: 0; padding: 0 0 0 10px; background: none; cursor: pointer; display: flex; align-items: center; }
.tb4-back svg { width: 54px; height: 30px; fill: #f4f1e6; filter: drop-shadow(0 1px 0 rgba(0,0,0,.6)); transition: transform .12s; }
.tb4-back:active svg { transform: translateX(-4px); }
.topbar-menu.tb4 h2 { font-size: 21px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); letter-spacing: .5px; }
.tb4 .resbar { display: flex; gap: 6px; }
.tb4 .resbar span { background: rgba(0,0,0,.35); }
/* thẻ danh mục: dải xéo, chọn = ngọc bích */
.hd-tabs button { border-radius: 2px !important; background: rgba(255,250,235,.7) !important; border: 1.5px solid rgba(60,45,30,.25) !important; color: #4a3a2a !important; box-shadow: none !important; clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
.hd-tabs button.on { background: linear-gradient(90deg, #2e9b7c, #22785f) !important; color: #fff !important; border-color: #1d6e57 !important; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.chap-tabs .btn { border: 1.5px solid rgba(60,45,30,.25) !important; border-image: none !important; border-radius: 2px; background: rgba(255,250,235,.75); color: #4a3a2a; text-shadow: none; box-shadow: none; padding: 6px 22px 6px 12px; font-size: 14px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.chap-tabs .btn.gold { background: linear-gradient(90deg, #2e9b7c, #22785f); color: #fff; border-color: #1d6e57 !important; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.chap-tabs .btn:disabled { opacity: .55; }

/* ===== Đội Hình gọn (lu4) ===== */
.lu4 { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 8px; }
.lu4 .lineup-slots { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-top: 12px; }
.lu4 .slot { min-height: 0; height: 64px; flex-direction: row; justify-content: flex-start; gap: 6px; padding: 4px 26px 4px 4px; border-width: 2px; border-radius: 6px; box-shadow: 0 2px 0 rgba(42,26,16,.5); background: #fffaf0; }
.lu4 .slot.cap0 { background: linear-gradient(90deg, #ffe9a0, #fff6d8); border-color: #b5820a; }
.lu4 .slot.empty { justify-content: center; padding: 0; background: rgba(255,255,255,.35); }
.lu4 .slot.empty i { font-size: 26px; }
.lu4 .slot > img { width: 54px; height: 54px; border-radius: 4px; object-fit: cover; flex: none; }
.lu4 .slot .tag img { width: 12px; height: 12px; margin: -2px 2px 0 -3px; }
.lu4 .sl-t { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.lu4 .sl-t b { font-size: 12px; margin: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lu4 .sl-t .tag { font-size: 10px; line-height: 15px; padding: 0 5px; }
.lu4 .sl-t small { font-size: 10px; color: #7a5a3a; font-weight: 800; }
.lu4 .slot-no { top: -9px; left: 6px; font-size: 10px; }
.lu4 .mini { width: 20px; height: 20px; font-size: 12px; line-height: 15px; top: 4px; }
.lu4 .mini.rm { right: 3px; } .lu4 .mini.cap { left: auto; right: 3px; top: 34px; }
.lu-hint { flex: none; margin: 6px 2px 4px; font-size: 12px; color: #6a4a2a; text-align: center; }
.lu4 .lineup-body { flex: 1; min-height: 0; margin-top: 0; gap: 8px; }
.lu4 .pick-grid2 { flex: 1; min-width: 0; overflow-y: auto; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 124px; align-content: start; gap: 6px; padding: 2px 4px 8px 2px; align-self: stretch; overscroll-behavior: contain; }
.lu4 .hc2 { border-radius: 6px; padding-bottom: 3px; height: 124px; align-self: stretch; }
.lu4 .hc2-img { height: 84px; flex: none; aspect-ratio: auto; }
.lu4 .hc2-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lu4 .hc2 b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.lu4 .hc2 small { font-size: 10px; }
.lu4 .hc2-sys img { width: 14px; height: 14px; }
.lu4 .hc2.in { outline: 3px solid #2e9b7c; outline-offset: -1px; }
.lu4 .synergy { flex: none; width: 220px; overflow-y: auto; padding: 6px 8px; border-radius: 6px; font-size: 11px; background: rgba(255,252,242,.8); border: 1.5px solid rgba(74,42,28,.25); overscroll-behavior: contain; }
.lu4 .synergy h4 { font-size: 12px; margin: 6px 0 3px; padding-left: 6px; border-left: 3px solid #2e9b7c; color: #2a1a10; }
.lu4 .syn { padding: 3px 5px; margin-bottom: 3px; border-radius: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; line-height: 1.25; }
.lu4 .syn .sys-ico { width: 14px; height: 14px; }
.lu4 .syn.on { border-width: 1.5px; background: #eafaf2; border-color: #2e9b7c; }
.lu4 .syn i { font-style: normal; font-weight: 800; color: #2e9b7c; font-size: 10px; }
.lu4 .syn small { width: 100%; font-size: 10px; color: #8a7a6a; }
.lu4 .syn small .got { color: #1d6e57; font-weight: 800; }
.lu4 .syn em { width: 100%; font-style: normal; font-size: 10.5px; color: #b5520a; font-weight: 700; }
/* ===== tinh chỉnh HUD trang chủ ===== */
.home4::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,6,4,.55) 0, rgba(8,6,4,0) 110px),
              linear-gradient(0deg, rgba(8,6,4,.6) 0, rgba(8,6,4,0) 90px),
              linear-gradient(90deg, rgba(8,6,4,.45) 0, rgba(8,6,4,0) 90px); }
.home4 > * { z-index: 1; }
.h4-acts .h4-ic { width: 64px; } .h4-acts .h4-ic span { font-size: 10.5px; }
.h4-main { background-position: center 45%; }
.h4-main .h4-st { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 3px; background: rgba(8,6,4,.6); color: #ffd34d; font-size: 12px; font-weight: 800; }
.h4-main.boss { box-shadow: 0 3px 8px rgba(0,0,0,.45), inset 0 0 0 1.5px #ff6a4a, 0 0 14px rgba(255,80,40,.45); }
.h4-main.boss .h4-st { color: #ff8a6a; }
.h4-c { background-position: center 40%; }
.h4-c b { letter-spacing: .5px; }
.h4-nav { padding: 0 4px; }
.h4-nav .h4-ic span, .h4-side .h4-ic span { font-size: 11.5px; }
.ur-card .btn, .td-card .btn { font-size: 15px !important; white-space: nowrap; }
.hu-btns .btn { font-size: 15px !important; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
/* chọn giao diện trong Cài Đặt */
.th-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.th-opt { display: flex; flex-direction: column; align-items: stretch; padding: 4px 4px 6px; border-radius: 6px; border: 2px solid rgba(120,90,50,.35); background: rgba(255,255,255,.08); cursor: pointer; text-align: center; }
.th-opt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.th-opt b { font-size: 13px; margin-top: 4px; color: #ffe9b0; } .th-opt small { font-size: 10.5px; color: #c8b89a; }
.th-opt.on { border-color: #2e9b7c; box-shadow: 0 0 0 2px rgba(46,155,124,.45); }
.th-opt img { aspect-ratio: 16 / 7; } .th-opt { padding: 3px 3px 4px; }
/* ===== Khung thẻ tướng kiểu chân dung (hero list + đội hình) ===== */
.hc2 { aspect-ratio: 3 / 4; padding: 0; border-radius: 6px; border-width: 2px; display: block; background: #2a1e16; box-shadow: 0 2px 4px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.35); }
.hc2 .hc2-img { position: absolute; inset: 0; height: auto !important; aspect-ratio: auto !important; }
.hc2 .hc2-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .2s; }
.hc2:hover .hc2-img img { transform: scale(1.05); }
.hc2 .hc2-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(12,8,6,.55) 40%, rgba(12,8,6,.92)); }
.hc2 b { position: absolute; left: 0; right: 0; bottom: 17px; margin: 0; z-index: 2; color: #fff !important; font-size: 12px; text-shadow: 0 1px 0 #000, 0 0 4px #000; }
.hc2 small { position: absolute; left: 0; right: 0; bottom: 3px; z-index: 2; color: #ffe9b0 !important; font-size: 10px; text-shadow: 0 1px 0 #000; }
.hc2 .hc2-st { color: #ffcf3f; } .hc2 .hc2-st i { color: rgba(255,255,255,.28); }
.hc2 .hc2-lock { color: #c8b8a0; }
.hc2 .hc2-rar, .hc2 .hc2-sys, .hc2 .hc2-in, .hc2 .dot { z-index: 3; }
.hc2 .hc2-rar { top: 0; left: 0; border-radius: 0 0 6px 0; padding: 1px 7px 2px 5px; font-size: 10px; }
.hc2 .hc2-sys { top: 3px; right: 3px; padding: 2px; border-radius: 10px; background: rgba(12,8,6,.45); }
.hc2 .hc2-sys .sys-ico { width: 16px; height: 16px; }
.hc2.r-R { border-color: #4a8af0; } .hc2.r-SR { border-color: #9a5cff; } .hc2.r-SSR { border-color: #e8a820; box-shadow: 0 2px 4px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,230,150,.6), 0 0 6px rgba(232,168,32,.45); }
.hc2.r-R .hc2-rar { background: #2a5ab0; color: #fff; } .hc2.r-SR .hc2-rar { background: #6a2ad0; color: #fff; } .hc2.r-SSR .hc2-rar { background: linear-gradient(90deg, #c07a0a, #e8a820); color: #fff; }
.hc2.t-SSRP .hc2-rar { background: linear-gradient(90deg, #e05a10, #ffb020); color: #fff; }
.hc2.locked .hc2-img img { filter: grayscale(.85) brightness(.55); } .hc2.locked { opacity: 1; }
.hc2.locked b { color: #b8a898 !important; }
.lu4 .hc2 { aspect-ratio: auto; height: 124px; } .lu4 .hc2 b { font-size: 11px; }
.hero-grid2 { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 7px; }
/* bộ lọc 1 hàng */
.hf-bar.hf1 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 8px; }
.hf1 .hf-chips { gap: 4px; flex-wrap: nowrap; }
.hf1 .chip { padding: 3px 9px; border-radius: 3px; }
.hf-sel { height: 26px; border-radius: 3px; border: 1px solid #c08a1a; background: #fff6dc; color: #5a3410; font: 800 12px "Baloo 2", sans-serif; padding: 0 6px; cursor: pointer; }
.hf1 .hf-count { margin-left: auto; font-size: 12px; }

/* ===================== Chi tiết tướng hd5 ===================== */
.hd5 { overflow: hidden; background: #0d0a08; color: #f0e6d2; --tc: #e8a820; --tc2: rgba(232,168,32,.45); }
.hd5.r-R { --tc: #5a9cff; --tc2: rgba(90,156,255,.4); } .hd5.r-SR { --tc: #b07aff; --tc2: rgba(176,122,255,.45); }
.hd5.t-SSRP { --tc: #ff9a2e; --tc2: rgba(255,154,46,.5); } .hd5.t-UR { --tc: #ff4a4a; --tc2: rgba(255,74,74,.5); } .hd5.t-URP { --tc: #c070ff; --tc2: rgba(192,112,255,.55); } .hd5.t-A { --tc: #b8c0c8; --tc2: rgba(184,192,200,.3); }
.hd5 .topbar-menu { position: relative; z-index: 5; margin: 0; }
.hd5-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.62); z-index: 0; }
.hd5-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(8,6,4,.55) 0, rgba(8,6,4,0) 30%, rgba(8,6,4,0) 50%, rgba(8,6,4,.75) 64%), linear-gradient(0deg, rgba(8,6,4,.75) 0, transparent 22%); }
.hd5-stage { position: absolute; left: 170px; top: 66px; width: 380px; height: 412px; cursor: pointer; }
.hd5-hero { position: absolute; left: 50%; bottom: 0; width: 300px; height: 400px; transform: translateX(-50%); transform-origin: 50% 100%; animation: hd5breath 3.6s ease-in-out infinite; }
.hd5-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 0 1px rgba(0,0,0,.5)) drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.hd5-hero .p1 { animation: hd5a 3.6s steps(1) infinite; } .hd5-hero .p2 { animation: hd5b 3.6s steps(1) infinite; } .hd5-hero .pa { opacity: 0; }
.hd5-hero.act .p1, .hd5-hero.act .p2 { animation: none; opacity: 0; } .hd5-hero.act .pa { opacity: 1; }
.hd5-hero.off img { filter: grayscale(.8) brightness(.55); }
@keyframes hd5a { 0% { opacity: 1; } 50% { opacity: 0; } } @keyframes hd5b { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes hd5breath { 50% { transform: translateX(-50%) scale(1.012, .99); } }
.hd5-glow { position: absolute; left: 50%; top: 46%; width: 340px; height: 340px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--tc2) 0, transparent 62%); animation: hd5pulse 3s ease-in-out infinite; }
.hd5.r-R .hd5-glow, .hd5.r-SR .hd5-glow { opacity: .6; }
@keyframes hd5pulse { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .75; } }
.hd5-aura { position: absolute; left: 50%; top: 44%; width: 400px; height: 400px; transform: translate(-50%, -50%); mix-blend-mode: screen; opacity: .85; animation: hd5spin 26s linear infinite; pointer-events: none; }
@keyframes hd5spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hd5-dom { position: absolute; left: 50%; bottom: -70px; width: 420px; height: 420px; margin-left: -210px; mix-blend-mode: screen; opacity: .8; transform: perspective(600px) rotateX(72deg); animation: hd5dom 30s linear infinite; pointer-events: none; }
@keyframes hd5dom { to { transform: perspective(600px) rotateX(72deg) rotate(360deg); } }
.hd5-pts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hd5-pts i { position: absolute; left: var(--x); bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px 2px var(--tc); opacity: 0; transform: scale(var(--s)); animation: hd5pt 3.2s linear infinite; animation-delay: var(--d); }
@keyframes hd5pt { 10% { opacity: .9; } 100% { opacity: 0; transform: translateY(-360px) scale(var(--s)); } }
.hd5-stage.ultfx .hd5-glow { animation: hd5ult .7s ease-out; } .hd5-stage.ultfx .hd5-aura { opacity: 1; filter: brightness(1.6); }
@keyframes hd5ult { 0% { transform: translate(-50%, -50%) scale(.6); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
/* nhận diện */
.hd5-id { position: absolute; left: 14px; top: 56px; z-index: 3; display: flex; flex-direction: column; gap: 3px; max-width: 300px; pointer-events: none; }
.hd5-tier { font: italic 900 44px/0.9 "Baloo 2", sans-serif; letter-spacing: -1px; background: linear-gradient(180deg, #fff 10%, var(--tc) 60%, #6a3a0a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.7)) drop-shadow(0 0 10px var(--tc2)); }
.hd5.t-URP .hd5-tier { background: linear-gradient(90deg, #c070ff, #ff5a9a, #ffcf3f, #3affd0, #c070ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: urShift 2.5s linear infinite; }
.hd5-nm h2 { margin: 0; font-size: 26px; line-height: 1.05; color: #fff; text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,.7); }
.hd5-nm small { display: block; font-size: 12px; color: #e8d8b8; text-shadow: 0 1px 2px #000; margin: 1px 0 2px; }
.hd5-nm .stars { font-size: 17px; } .hd5-no { font-style: normal; color: #ff9a8a; font-weight: 800; font-size: 13px; }
.hd5-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.hd5-pw { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; padding: 2px 18px 3px 8px; background: linear-gradient(90deg, rgba(8,6,4,.75), transparent); width: max-content; }
.hd5-pw small { font-size: 11px; color: #e8d8b8; font-weight: 700; } .hd5-pw b { font-size: 24px; color: #ffd34d; text-shadow: 0 2px 0 #000; } .hd5-pw span { font-size: 13px; color: #fff; font-weight: 800; }
/* kỹ năng */
.hd5-sk { position: absolute; left: 498px; top: 120px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.hd5-ski { width: 52px; display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.hd5-ski span { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; border: 2px solid rgba(255,240,200,.75); background: radial-gradient(circle at 35% 30%, #6a6a7a, #22222a); box-shadow: 0 2px 5px rgba(0,0,0,.6); transition: transform .12s; text-shadow: 0 1px 2px #000; }
.hd5-ski.k-small span { background: radial-gradient(circle at 35% 30%, #5aa0ff, #12306a); } .hd5-ski.k-ult span { background: radial-gradient(circle at 35% 30%, #ffcf5a, #a0300a); }
.hd5-ski.k-passive span { background: radial-gradient(circle at 35% 30%, #5ad09a, #0e4a34); } .hd5-ski.k-cap span { background: radial-gradient(circle at 35% 30%, #c08aff, #3a1460); }
.hd5-ski small { font-size: 10px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.hd5-ski.on span { transform: scale(1.12); border-color: #fff; box-shadow: 0 0 0 2px var(--tc), 0 0 12px var(--tc); }
.hd5-tip { position: absolute; left: 14px; bottom: 64px; width: 250px; z-index: 3; padding: 6px 10px 7px; border-left: 3px solid var(--tc); background: linear-gradient(90deg, rgba(8,6,4,.85), rgba(8,6,4,.55)); border-radius: 0 4px 4px 0; }
.hd5-tip i { font-style: normal; font-size: 10.5px; color: #c8b89a; font-weight: 700; } .hd5-tip b { display: block; font-size: 15px; color: #ffe9b0; } .hd5-tip p { margin: 1px 0 0; font-size: 12px; color: #f0e6d2; line-height: 1.3; }
/* dải chuyển tướng */
.hd5-roster { position: absolute; left: 10px; bottom: 6px; width: 560px; height: 52px; z-index: 3; display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px; scrollbar-width: none; }
.hd5-roster::-webkit-scrollbar { display: none; }
.hd5-roster button { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 4px; border: 2px solid rgba(255,255,255,.3); background: #2a1e16; overflow: hidden; cursor: pointer; opacity: .8; }
.hd5-roster button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hd5-roster button.t-SSR, .hd5-roster button.t-SSRP { border-color: #e8a820; } .hd5-roster button.t-UR { border-color: #ff4a4a; } .hd5-roster button.t-URP { border-color: #c070ff; } .hd5-roster button.t-SR { border-color: #9a5cff; }
.hd5-roster button.on { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px #fff, 0 0 10px var(--tc); }
/* khung phải + danh mục dọc */
.hd5-panel { position: absolute; right: 78px; top: 54px; bottom: 8px; width: 330px; z-index: 3; overflow-y: auto; padding: 8px 10px; background: linear-gradient(180deg, rgba(12,10,8,.82), rgba(12,10,8,.7)); border: 1px solid rgba(255,236,190,.18); border-radius: 4px; overscroll-behavior: contain; }
.hd5-tabs { position: absolute; right: 0; top: 64px; width: 76px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.hd5-tabs button { height: 40px; border: 0; padding: 0 6px 0 12px; text-align: left; font: 800 13px "Baloo 2", sans-serif; color: #e8dcc8; background: rgba(8,6,4,.55); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); cursor: pointer; }
.hd5-tabs button.on { color: #fff; background: linear-gradient(90deg, #2e9b7c, #1d6e57); text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.hd5 .hd-body, .hd5 .hd-body b, .hd5 .hd-body p, .hd5 .hd-body small, .hd5 .hd-body i, .hd5 .hd-body .hint { color: #f0e6d2; }
.hd5 .hd-body small, .hd5 .hd-body i { color: #c8b89a; }
.hd5 .hd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 8px; }
.hd5 .hd-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 3px; padding: 4px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.hd5 .hd-stats span { font-size: 11px; color: #c8b89a; } .hd5 .hd-stats b { font-size: 16px; color: #ffe9b0; }
.hd5 .hs, .hd5 .hu-row, .hd5 .hb, .hd5 .he { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-left: 3px solid rgba(255,236,190,.35); border-radius: 3px; box-shadow: none; }
.hd5 .hs.ult { border-left-color: #ff7a3a; } .hd5 .hs p { font-size: 11.5px; }
.hd5 .hu-row { flex-wrap: wrap; gap: 6px; } .hd5 .hu-row.ur { border-left-color: #ff4a4a; background: rgba(255,60,60,.1); }
.hd5 .hu-btns { flex-wrap: wrap; } .hd5 .hu-btns .btn { font-size: 13px !important; padding: 4px 12px 6px; }
.hd5 .em.up, .hd5 em.up { color: #7dff9a; }
/* ===== thẻ danh sách: ruy băng, lực chiến, sáng khi nâng sao được ===== */
.hc2 .hc2-team { position: absolute; left: 0; bottom: 31px; z-index: 3; padding: 0 7px 0 4px; font-size: 9.5px; font-weight: 800; color: #fff; background: #2e9b7c; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.hc2 .hc2-team.cap { background: linear-gradient(90deg, #c07a0a, #e8a820); }
.hc2 .hc2-pw { position: absolute; left: 0; top: 17px; z-index: 3; padding: 0 6px 0 4px; font-size: 9.5px; font-weight: 800; color: #ffd34d; background: rgba(12,8,6,.6); border-radius: 0 3px 3px 0; }
.hc2.can-up { animation: hc2up 1.6s ease-in-out infinite; }
@keyframes hc2up { 50% { box-shadow: 0 0 0 2px #7dff9a, 0 0 12px rgba(125,255,154,.8); } }

.hd5 .hd-body { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.hd5 .hd-body .hs, .hd5 .hd-body .hu-row, .hd5 .hd-body .hb, .hd5 .hd-body .he, .hd5 .hd-body .hd-stats > div { background: rgba(255,255,255,.06) !important; }
.hd5 .hd-body .hs b, .hd5 .hd-body .hu-row b, .hd5 .hd-body .hb b { color: #ffe9b0 !important; }
.hd5 .hd-body p, .hd5 .hd-body .hu-row small { color: #e6dccb !important; }
.hd5 .hd-body .hs i, .hd5 .hd-body small { color: #c8b89a !important; }
.hd5-tabs { width: 86px; } .hd5-tabs button { white-space: nowrap; font-size: 12.5px; height: 36px; }
.hd5-panel { right: 88px; width: 320px; }

/* ===================== Thẻ tướng: khung vẽ tay (hc4) ===================== */
.hc2 { border: 0 !important; border-radius: 4px; box-shadow: 0 3px 6px rgba(0,0,0,.35) !important; overflow: visible; background: #1a1410; --el: #c8a050; }
.hc2::after { display: none !important; }
.hc2 .hc2-img { inset: 3.5% 4.5% 3.5% 4.5%; border-radius: 2px; overflow: hidden; }
.hc2 .hc2-img::after { height: 42%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--el) 35%, rgba(10,6,4,.7)) 45%, rgba(10,6,4,.92)); }
.hc2 .hc2-img::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .32; mix-blend-mode: soft-light; background: var(--elpat); }
.hc2.el-kim { --el: #e8c040; --elpat: repeating-radial-gradient(circle at 20% 110%, transparent 0 9px, rgba(255,240,180,.9) 10px 11px); }
.hc2.el-moc { --el: #3fbf6a; --elpat: repeating-linear-gradient(60deg, transparent 0 8px, rgba(200,255,200,.8) 9px 10px); }
.hc2.el-thuy { --el: #3a9aff; --elpat: repeating-radial-gradient(ellipse at 50% 120%, transparent 0 7px, rgba(190,230,255,.9) 8px 9px); }
.hc2.el-hoa { --el: #ff5a3a; --elpat: repeating-linear-gradient(-70deg, transparent 0 7px, rgba(255,200,150,.9) 8px 10px); }
.hc2.el-tho { --el: #c8903a; --elpat: repeating-linear-gradient(0deg, transparent 0 10px, rgba(255,220,170,.8) 11px 12px); }
.hc2-fr { position: absolute; inset: -2%; z-index: 4; pointer-events: none; background: url(../art/ui/frames/R.webp) center / 100% 100% no-repeat; }
.hc2.r-SR .hc2-fr { background-image: url(../art/ui/frames/SR.webp); }
.hc2.r-SSR .hc2-fr { background-image: url(../art/ui/frames/SSR.webp); }
.hc2.t-SSRP .hc2-fr { background-image: url(../art/ui/frames/SSRP.webp); inset: -6% -2% -2% -2%; }
.hc2.t-UR .hc2-fr { background-image: url(../art/ui/frames/UR.webp); inset: -5% -2% -2% -2%; }
.hc2.t-URP .hc2-fr { background-image: url(../art/ui/frames/URP.webp); }
.hc2.t-UR, .hc2.t-URP { box-shadow: 0 3px 6px rgba(0,0,0,.35), 0 0 12px rgba(255,80,60,.45) !important; } .hc2.t-URP { box-shadow: 0 3px 6px rgba(0,0,0,.35), 0 0 14px rgba(170,90,255,.6) !important; }
/* thông tin */
.hc2 .hc2-rar { z-index: 5; top: 6%; left: 7%; background: none !important; padding: 0; border-radius: 0; font: italic 900 14px/1 "Baloo 2", sans-serif; letter-spacing: -.5px; color: #fff !important; -webkit-text-stroke: 3px rgba(20,10,4,.85); paint-order: stroke fill; }
.hc2.r-R .hc2-rar { color: #9cc8ff !important; } .hc2.r-SR .hc2-rar { color: #d8b0ff !important; } .hc2.r-SSR .hc2-rar { color: #ffd34d !important; } .hc2.t-SSRP .hc2-rar { color: #ffa040 !important; } .hc2.t-UR .hc2-rar { color: #ff6a5a !important; } .hc2.t-URP .hc2-rar { color: #e0a0ff !important; }
.hc2 .hc2-sys { z-index: 5; top: 6%; right: 7%; background: rgba(12,8,6,.55); border-radius: 50%; padding: 2px; }
.hc2 .hc2-sys .sys-ico:not(:first-child) { display: none; }
.hc2 .hc2-sys .sys-ico { width: 17px; height: 17px; }
.hc2 .hc2-pw { z-index: 5; top: calc(6% + 16px); left: 7%; padding: 0 4px; border-radius: 2px; }
.hc2 b { z-index: 5; bottom: calc(5% + 13px); left: 6%; right: 6%; font-size: 11.5px; }
.hc2 small { z-index: 5; bottom: 5%; left: 6%; right: 6%; }
.hc2 .hc2-st { font-size: 12.5px; letter-spacing: -1px; color: #ffd34d; -webkit-text-stroke: 2px #4a2a08; paint-order: stroke fill; }
.hc2 .hc2-st i { color: rgba(255,255,255,.22); -webkit-text-stroke: 2px rgba(0,0,0,.5); }
.hc2 .hc2-lv { position: absolute; z-index: 6; left: 4%; bottom: 3%; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 9px; font: 900 10px/14px "Baloo 2", sans-serif; font-style: normal; color: #fff; text-align: center; background: radial-gradient(circle at 40% 30%, #6a5a4a, #1a1410); border: 2px solid #e8c88a; box-sizing: border-box; }
.hc2 .hc2-team { z-index: 5; left: 4.5%; bottom: calc(5% + 28px); }
.hc2 .hc2-in { z-index: 6; top: calc(6% + 20px); right: 7%; }
.hc2 .dot { z-index: 6; top: 2%; right: 2%; }
/* vệt sáng SSR+ trở lên, hạt lấp lánh UR/UR+ */
.hc2-shine { position: absolute; inset: 3.5% 4.5%; z-index: 3; overflow: hidden; pointer-events: none; }
.hc2-shine::before { content: ''; position: absolute; top: -20%; bottom: -20%; width: 35%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,250,220,.55), transparent); animation: hcShine 4.5s ease-in-out infinite; }
.hc2:nth-child(3n) .hc2-shine::before { animation-delay: 1.5s; } .hc2:nth-child(3n+1) .hc2-shine::before { animation-delay: 3s; }
@keyframes hcShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.hc2-tw { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hc2-tw b { position: absolute; width: 8px; height: 8px; position: absolute; background: radial-gradient(circle, #fff 0 15%, rgba(255,230,150,.9) 30%, transparent 70%); animation: hcTw 2.2s ease-in-out infinite; }
.hc2-tw b::before, .hc2-tw b::after { content: ''; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 1.5px; margin-left: -.75px; background: linear-gradient(transparent, #fff, transparent); }
.hc2-tw b::after { transform: rotate(90deg); }
.hc2-tw b:nth-child(1) { left: 12%; top: 30%; } .hc2-tw b:nth-child(2) { right: 14%; top: 52%; animation-delay: .8s; } .hc2-tw b:nth-child(3) { left: 30%; top: 12%; animation-delay: 1.5s; }
@keyframes hcTw { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }
.hc2.locked .hc2-fr { filter: grayscale(.7) brightness(.8); }
.hc2.can-up { animation: none; } .hc2.can-up .hc2-fr { animation: hc2up2 1.6s ease-in-out infinite; }
@keyframes hc2up2 { 50% { filter: drop-shadow(0 0 4px #7dff9a) drop-shadow(0 0 2px #7dff9a); } }
.lu4 .hc2.in { outline: 0; } .lu4 .hc2.in .hc2-fr { filter: drop-shadow(0 0 3px #2eff9c) drop-shadow(0 0 2px #2eff9c); }
.hero-grid2 { gap: 9px; padding: 4px 2px; }
/* báo nâng sao: mũi tên nhỏ, không làm sáng khung (trước đây R hay đủ mảnh nên sáng nhất) */
.hc2.can-up .hc2-fr { animation: none; filter: none; }
.hc2 .hc2-up { position: absolute; z-index: 6; right: 4%; bottom: 3%; width: 18px; height: 18px; border-radius: 50%; font: 900 10px/16px sans-serif; font-style: normal; color: #fff; text-align: center; background: radial-gradient(circle at 40% 30%, #5aff8a, #12803a); border: 2px solid #eaffea; box-sizing: border-box; animation: hcUp 1s ease-in-out infinite; }
@keyframes hcUp { 50% { transform: translateY(-3px); } }
/* ánh sáng khung theo phẩm: cao hơn rực hơn */
.hc2.r-SSR .hc2-fr { filter: drop-shadow(0 0 3px rgba(255,210,90,.55)); }
.hc2.t-SSRP .hc2-fr { animation: hcG1 2.6s ease-in-out infinite; }
.hc2.t-UR .hc2-fr { animation: hcG2 1.8s ease-in-out infinite; }
.hc2.t-URP .hc2-fr { animation: hcG3 3s linear infinite; }
@keyframes hcG1 { 0%, 100% { filter: drop-shadow(0 0 3px rgba(255,150,40,.5)); } 50% { filter: drop-shadow(0 0 7px rgba(255,150,40,.95)) drop-shadow(0 0 2px #ffd080); } }
@keyframes hcG2 { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255,60,40,.6)); } 50% { filter: drop-shadow(0 0 9px rgba(255,60,40,1)) drop-shadow(0 0 3px #ffb040); } }
@keyframes hcG3 { 0% { filter: drop-shadow(0 0 7px #c070ff) drop-shadow(0 0 2px #fff); } 33% { filter: drop-shadow(0 0 7px #ff5aa0) drop-shadow(0 0 2px #fff); } 66% { filter: drop-shadow(0 0 7px #3affd0) drop-shadow(0 0 2px #fff); } 100% { filter: drop-shadow(0 0 7px #c070ff) drop-shadow(0 0 2px #fff); } }
.hc2.locked .hc2-fr { animation: none; filter: grayscale(.7) brightness(.8); }
/* UR: ánh cầu vồng */
.hc2.t-UR .hc2-fr { animation: hcG3 3s linear infinite; }
.hc2.t-UR, .hd5-roster button.t-UR { box-shadow: 0 3px 6px rgba(0,0,0,.35), 0 0 12px rgba(200,120,255,.45) !important; }
/* ===================== UR+ độc bản ===================== */
.hc2.t-URP { order: -1; }
.hc2-neb { position: absolute; inset: 3.5% 4.5%; z-index: 2; pointer-events: none; border-radius: 2px; background: url(../art/ui/frames/nebula.webp) 0 0 / 120px 120px; mix-blend-mode: screen; opacity: .75; animation: hcNeb 40s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 60% 48% at 50% 42%, transparent 55%, #000 100%); mask-image: radial-gradient(ellipse 60% 48% at 50% 42%, transparent 55%, #000 100%); }
@keyframes hcNeb { to { background-position: 240px 120px; } }
.hc2-meteor { position: absolute; inset: 3.5% 4.5%; z-index: 3; overflow: hidden; pointer-events: none; }
.hc2-meteor b { position: absolute; top: 0; left: 70%; width: 46px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 80%, #ffe9a0); transform: rotate(-35deg); opacity: 0; animation: hcMet 5s ease-in infinite; }
.hc2-meteor b:nth-child(2) { left: 95%; top: 20%; animation-delay: 2.6s; }
@keyframes hcMet { 0%, 80% { opacity: 0; transform: translate(0, 0) rotate(-35deg); } 84% { opacity: 1; } 100% { opacity: 0; transform: translate(-120px, 85px) rotate(-35deg); } }
.hc2-band { position: absolute; inset: -2%; z-index: 5; pointer-events: none; background: url(../art/ui/frames/nebula.webp) 0 0 / 90px 90px; mix-blend-mode: screen; opacity: .9; animation: hcNeb 18s linear infinite;
  -webkit-mask: url(../art/ui/frames/URP.webp) center / 100% 100% no-repeat; mask: url(../art/ui/frames/URP.webp) center / 100% 100% no-repeat; }
.hc2.t-URP .hc2-fr { z-index: 4; }
.hc2-tj { position: absolute; z-index: 6; left: 50%; top: 3%; width: 26%; aspect-ratio: 1; margin-left: -13%; transform: translateY(-50%); pointer-events: none; background: url(../art/ui/frames/taiji.webp) center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(200,140,255,.9)) drop-shadow(0 2px 2px rgba(0,0,0,.6)); animation: hcTj 8s linear infinite; }
@keyframes hcTj { to { transform: translateY(-50%) rotate(360deg); } }
.hc2.t-URP .hc2-rar { font-size: 0 !important; -webkit-text-stroke: 0; top: 5%; }
.hc2.t-URP .hc2-rar::after { content: 'Đạo Tổ'; font: 700 17px/1 "Dancing Script", cursive; background: linear-gradient(180deg, #fff6c8, #ffcf3f 55%, #b06a10); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #2a0a3a) drop-shadow(0 0 4px rgba(200,120,255,.8)); }
.hc2.t-URP .hc2-pw { top: calc(5% + 20px); }
.hc2.t-URP b { color: transparent !important; background: linear-gradient(90deg, #ffe9a0 0%, #fff 20%, #ffcf3f 40%, #ffe9a0 60%, #fff 80%, #ffcf3f 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 3px rgba(0,0,0,.8)); animation: hcGold 3s linear infinite; }
@keyframes hcGold { to { background-position: -200% 0; } }
/* chạm thẻ: Tử khí Hồng Mông toả ra */
.hc2.t-URP::before { content: ''; position: absolute; left: 50%; top: 45%; width: 30%; aspect-ratio: 1; margin-left: -15%; border-radius: 50%; z-index: 7; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0, rgba(210,140,255,.85) 25%, rgba(150,60,255,.5) 50%, transparent 72%); }
.hc2.t-URP.qi::before { animation: hcQi .65s ease-out forwards; }
.hc2.t-URP.qi { transform: scale(1.06); transition: transform .3s; z-index: 10; }
@keyframes hcQi { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(9); } }
.hc2-band { opacity: .42; mix-blend-mode: soft-light; }
.hc2.t-URP .hc2-rar::after { font-size: 13.5px; }
.hc2-tj { width: 22%; margin-left: -11%; }
/* viền UR+ đổi sắc: bản sao khung xoay sắc màu (không dùng mask vì file:// chặn ảnh mask -> che mất khung) */
.hc2-band { -webkit-mask: none !important; mask: none !important; mix-blend-mode: normal !important; background: url(../art/ui/frames/URP.webp) center / 100% 100% no-repeat !important; opacity: 0; animation: hcBand 6s linear infinite !important; z-index: 5; }
@keyframes hcBand { 0% { opacity: 0; filter: hue-rotate(0deg) saturate(1.6); } 50% { opacity: .75; filter: hue-rotate(180deg) saturate(1.8) brightness(1.15); } 100% { opacity: 0; filter: hue-rotate(360deg) saturate(1.6); } }
.hc2-meteor b, .hc2-tw b { -webkit-background-clip: border-box !important; background-clip: border-box !important; animation-name: inherit; }
.hc2.t-URP .hc2-meteor b { background: linear-gradient(90deg, rgba(255,255,255,0), #fff 80%, #ffe9a0) !important; animation: hcMet 5s ease-in infinite !important; filter: none; }
.hc2.t-URP .hc2-meteor b:nth-child(2) { animation-delay: 2.6s !important; }
.hc2.t-URP .hc2-tw b { background: radial-gradient(circle, #fff 0 15%, rgba(255,230,150,.9) 30%, transparent 70%) !important; animation: hcTw 2.2s ease-in-out infinite !important; filter: none; }
.hc2.t-URP .hc2-tw b:nth-child(2) { animation-delay: .8s !important; } .hc2.t-URP .hc2-tw b:nth-child(3) { animation-delay: 1.5s !important; }
/* hào quang thẻ theo phẩm: lớp riêng sau thẻ, đủ rõ trên nền sáng */
.hc2-glow { position: absolute; inset: 1%; z-index: 0; border-radius: 6px; pointer-events: none; }
.hc2.r-SSR .hc2-glow { box-shadow: 0 0 10px 3px rgba(255,190,40,.85); }
.hc2.t-SSRP .hc2-glow { animation: hgOrange 2s ease-in-out infinite; }
.hc2.t-UR .hc2-glow { animation: hgRainbow 3s linear infinite; }
.hc2.t-URP .hc2-glow { animation: hgRainbow 2s linear infinite; inset: -2%; }
@keyframes hgOrange { 0%, 100% { box-shadow: 0 0 8px 2px rgba(255,120,20,.7); } 50% { box-shadow: 0 0 18px 6px rgba(255,120,20,1); } }
@keyframes hgRainbow { 0% { box-shadow: 0 0 14px 5px #ff3a5a; } 20% { box-shadow: 0 0 16px 6px #ffb020; } 40% { box-shadow: 0 0 14px 5px #40e070; } 60% { box-shadow: 0 0 16px 6px #30b0ff; } 80% { box-shadow: 0 0 14px 5px #b050ff; } 100% { box-shadow: 0 0 14px 5px #ff3a5a; } }
.hc2.locked .hc2-glow { display: none; }
.lu4 .hc2-glow { inset: 2%; }
/* ánh sáng bám theo khung (toả cả mép trong lẫn mép ngoài viền) — kiểu ánh "nâng sao" cũ, theo màu phẩm */
.hc2.r-SSR .hc2-fr { animation: fgGold 2.4s ease-in-out infinite; filter: none; }
.hc2.t-SSRP .hc2-fr { animation: fgOrange 1.8s ease-in-out infinite; }
.hc2.t-UR .hc2-fr { animation: fgRainbow 3s linear infinite; }
.hc2.t-URP .hc2-fr { animation: fgRainbow 2s linear infinite; }
@keyframes fgGold { 0%, 100% { filter: drop-shadow(0 0 1px #ffe080); } 50% { filter: drop-shadow(0 0 4px #ffc830) drop-shadow(0 0 2px #ffe080); } }
@keyframes fgOrange { 0%, 100% { filter: drop-shadow(0 0 1px #ffb060); } 50% { filter: drop-shadow(0 0 5px #ff8a1a) drop-shadow(0 0 2px #ffc060); } }
@keyframes fgRainbow { 0% { filter: drop-shadow(0 0 4px #ff3a5a) drop-shadow(0 0 2px #ff9aaa); } 20% { filter: drop-shadow(0 0 5px #ffb020) drop-shadow(0 0 2px #ffe080); } 40% { filter: drop-shadow(0 0 4px #30e070) drop-shadow(0 0 2px #a0ffb0); } 60% { filter: drop-shadow(0 0 5px #30a8ff) drop-shadow(0 0 2px #a0d8ff); } 80% { filter: drop-shadow(0 0 4px #b050ff) drop-shadow(0 0 2px #e0b0ff); } 100% { filter: drop-shadow(0 0 4px #ff3a5a) drop-shadow(0 0 2px #ff9aaa); } }
.hc2.locked .hc2-fr { animation: none !important; filter: grayscale(.7) brightness(.8) !important; }
/* SSR = cam, SSR+ = đỏ */
.hc2.r-SSR .hc2-fr { animation: fgOrange 2.4s ease-in-out infinite; }
.hc2.t-SSRP .hc2-fr { animation: fgRed 1.8s ease-in-out infinite; }
@keyframes fgRed { 0%, 100% { filter: drop-shadow(0 0 1px #ff8a7a); } 50% { filter: drop-shadow(0 0 5px #ff2a2a) drop-shadow(0 0 2px #ff9a8a); } }
.hc2.r-SSR .hc2-glow { box-shadow: 0 0 10px 3px rgba(255,130,20,.8); }
.hc2.t-SSRP .hc2-glow { animation: hgRed 1.8s ease-in-out infinite; }
@keyframes hgRed { 0%, 100% { box-shadow: 0 0 8px 2px rgba(255,40,40,.7); } 50% { box-shadow: 0 0 18px 6px rgba(255,40,40,1); } }
.hc2.t-UR .hc2-fr { animation: fgRainbow 3s linear infinite; } .hc2.t-URP .hc2-fr { animation: fgRainbow 2s linear infinite; }
.hd5-hero { scale: var(--hs, 1); transform-origin: 50% 100%; }

/* ===== hiệu năng: hào quang thẻ chạy bằng opacity / hue-rotate (GPU), không vẽ lại box-shadow mỗi khung ===== */
.hc2-glow { will-change: opacity, filter; animation: none !important; }
.hc2.r-SSR .hc2-glow { box-shadow: 0 0 10px 3px rgba(255,130,20,.8); }
.hc2.t-SSRP .hc2-glow { box-shadow: 0 0 16px 5px rgba(255,40,40,.95); animation: hgPulse 1.8s ease-in-out infinite !important; }
.hc2.t-UR .hc2-glow, .hc2.t-URP .hc2-glow { box-shadow: 0 0 15px 5px #ff3a5a; animation: hgHue 3s linear infinite !important; }
.hc2.t-URP .hc2-glow { animation-duration: 2s !important; }
@keyframes hgPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hgHue { to { filter: hue-rotate(360deg); } }
.hc2.locked .hc2-glow { display: none; }
.hc2-fr { will-change: filter; }
/* tên UR+: bỏ chữ cắt nền (điện thoại hiện thành dải sáng mất chữ) → chữ vàng + ánh sáng nhịp, chạy mọi máy */
.hc2.t-URP b { color: #ffe9a0 !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; filter: none !important;
  text-shadow: 0 1px 0 #2a0a3a, 0 0 3px #000, 0 0 6px rgba(200,120,255,.9) !important; animation: hcGoldT 3s ease-in-out infinite !important; }
@keyframes hcGoldT { 0%, 100% { color: #ffe9a0; } 50% { color: #fff; } }
.hc2.t-URP .hc2-rar::after { color: #ffd76a !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; filter: none !important; text-shadow: 0 1px 0 #2a0a3a, 0 0 4px rgba(200,120,255,.9); }

/* UR tách lớp: canvas lớp chuyển động sau / trước ảnh dáng (màn chi tiết) */
.hd5-hero canvas.url { position: absolute; left: -60%; top: -45%; width: 220%; height: 165%; pointer-events: none; }
.hd5-hero.off canvas.url { display: none; }

/* màn chi tiết: nâng tướng lên khỏi thanh danh sách tướng phía dưới (đài sen / chân thú không bị che) */
.hd5-hero { bottom: 40px; }
.hd5-dom { bottom: -30px; }

/* Đội Hình: thanh lọc phẩm chất / hệ phái / phe (giống Thần Tướng), gọn một hàng */
.lu4 .lu-filter { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px; }
.lu4 .lu-filter .hf-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.lu4 .lu-filter .hf-sel { width: auto; min-width: 104px; }
.lu4 .lu-cnt { margin-left: auto; font-size: 12px; font-weight: 700; opacity: .75; }
.lu4 .lu-empty { grid-column: 1 / -1; text-align: center; opacity: .7; padding: 20px 0; }

/* Cửa Hàng (Vạn Bảo Các) + Thành Tựu: dùng lại hàng .q-row của Nhiệm Vụ */
.q-main .shop-sub { display: block; font-weight: 600; font-size: 12px; opacity: .78; margin-top: 1px; }
.q-row.shop-hero { grid-template-columns: 44px 1fr auto auto; }
.shop-por { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 2px solid #c08a1a; }
.shop-rf { text-align: center; padding: 8px 0 2px; }
.ach-tier { font-size: 11px; font-weight: 800; color: #b0761a; margin-left: 4px; }
.shop-rf .btn { white-space: nowrap; min-width: 190px; flex-direction: row; gap: 4px; justify-content: center; }

/* Luận Kiếm */
.ar-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 6px 10px 10px; }
.ar-rank { display: grid; padding: 6px 14px; border-radius: 12px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 18%, #fff8e6); }
.ar-rank b { font-size: 18px; color: var(--c); } .ar-rank small { font-weight: 800; font-size: 12px; color: #6a4a2a; }
.ar-stat { display: grid; gap: 2px; font-size: 13px; color: #6a4a2a; } .ar-wk { font-size: 12px; font-weight: 800; color: #6a4a2a; }
.ar-team { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ar-h { position: relative; width: 44px; height: 44px; } .ar-h img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 2px solid #c08a1a; }
.ar-h i { position: absolute; left: 2px; bottom: 1px; font-style: normal; font-size: 10px; font-weight: 900; color: #ffd34d; text-shadow: 0 1px 2px #000; }
.ar-h em { position: absolute; right: 2px; top: 1px; font-style: normal; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
.ar-tag { font-size: 11px; font-weight: 900; color: var(--c); margin-left: 4px; } .ar-bot { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 8px; background: #e8dcc0; color: #6a4a2a; }
.q-row.ar-row { grid-template-columns: 1fr auto; }
:root[data-theme="dem"] .ar-rank { background: color-mix(in srgb, var(--c) 18%, #2f2812); } :root[data-theme="dem"] .ar-rank small, :root[data-theme="dem"] .ar-stat, :root[data-theme="dem"] .ar-wk { color: #d9c5b1; }
@media (max-width: 640px) { .ar-head { grid-template-columns: 1fr; } }

/* Thần Tiên Lục */
.tl-head { display: grid; gap: 6px; padding: 2px 4px 6px; }
.tl-lv { padding: 6px 12px; border-radius: 12px; background: #fff6dc; border: 2px solid #c08a1a; }
.tl-lv b { font-size: 16px; color: #8a4a0a; } .tl-lv small { display: block; font-weight: 700; font-size: 12px; color: #6a4a2a; }
.tl-lv .bar { height: 6px; border-radius: 3px; background: #eadbc0; overflow: hidden; margin-top: 4px; } .tl-lv .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffcf3f, #e2901a); }
.tl-ms { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px 8px; } .tl-ms .cb { flex: 1; min-width: 92px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; padding: 4px; }
.tl-card { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 2px solid #c08a1a; background: #fff6dc; font: inherit; }
.tl-card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; } .tl-card .rar { position: absolute; top: 4px; left: 4px; }
.tl-card b { font-size: 12px; text-align: center; line-height: 1.1; } .tl-card small { font-size: 10px; font-weight: 700; color: #8a6a4a; }
.tl-card.no img { filter: grayscale(1) brightness(.55); } .tl-card.no { opacity: .75; border-color: #b8a890; }
:root[data-theme="dem"] .tl-lv, :root[data-theme="dem"] .tl-card { background: #2f2812; } :root[data-theme="dem"] .tl-lv small, :root[data-theme="dem"] .tl-card small { color: #d9c5b1; }
/* nút đang khoá (mở dần theo ải) */
.locked { filter: grayscale(.9) brightness(.8); position: relative; }
.locked .lk { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 900; white-space: nowrap; padding: 1px 6px; border-radius: 8px; background: rgba(20,12,6,.85); color: #ffe9b0; filter: none; }
.tr-card.locked .lk { bottom: 8px; font-size: 12px; }
.h4-ic.locked { display: none; }   /* nút nhỏ chưa mở: ẩn hẳn, mở tới đâu hiện tới đó */
.tl-ms .cb.ready { background: linear-gradient(#fff3a0, #ffc21a); border-color: #c07a0a; box-shadow: 0 0 10px rgba(255,200,60,.7); }

/* Động Phủ */
.dp-res { display: flex; gap: 10px; flex-wrap: wrap; padding: 2px 6px 8px; font-weight: 800; color: #4a2a10; } .dp-res span { padding: 3px 10px; border-radius: 10px; background: rgba(255,246,220,.9); border: 1.5px solid #c08a1a; }
.dp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px; }
.dp-b { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,246,220,.94); border: 2px solid #c08a1a; }
.dp-b img { width: 96px; height: 96px; object-fit: contain; } .dp-i b { display: block; font-size: 15px; color: #4a2a10; } .dp-i em { font-style: normal; font-size: 12px; color: #b0761a; margin-left: 4px; }
.dp-i small { display: block; font-size: 12px; font-weight: 700; color: #6a4a2a; margin: 2px 0 6px; } .dp-act { display: flex; gap: 6px; flex-wrap: wrap; } .dp-act .btn { flex-direction: row; gap: 3px; } .dp-max { font-size: 12px; font-weight: 800; color: #2a7a3a; font-style: normal; }
.dp-tt { display: flex; gap: 6px; flex-wrap: wrap; } .dp-tt .btn { flex-direction: row; gap: 4px; align-items: center; } .dp-tt img { width: 28px; height: 28px; border-radius: 6px; }
@media (max-width: 640px) { .dp-grid { grid-template-columns: 1fr; } }
/* Linh Thú */
.pet-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 10px; padding: 4px; }
.pet-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; align-content: start; max-height: 420px; overflow-y: auto; }
.pet-c { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left; padding: 4px 6px; border-radius: 12px; border: 2px solid #c08a1a; background: #fff6dc; font: inherit; }
.pet-c img { grid-row: span 2; width: 44px; height: 44px; object-fit: contain; } .pet-c b { font-size: 12px; line-height: 1.1; } .pet-c small { font-size: 10px; font-weight: 700; color: #8a6a4a; }
.pet-c.on { background: linear-gradient(#fff3a0, #ffd560); border-color: #c07a0a; } .pet-c.no img { filter: grayscale(1) brightness(.6); } .pet-c.no { opacity: .8; }
.pet-on { position: absolute; right: 4px; top: -6px; font-style: normal; font-size: 9px; font-weight: 900; padding: 0 5px; border-radius: 6px; background: #2a9a4a; color: #fff; }
.pet-d { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 14px; background: #fff6dc; border: 2px solid #c08a1a; }
.pet-big { width: 200px; height: 200px; object-fit: contain; } .pet-d h3 { margin: 0 0 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pet-sk { font-size: 13px; font-weight: 600; color: #4a2a10; margin: 0 0 6px; } .pet-btns { display: flex; gap: 6px; flex-wrap: wrap; } .pet-btns .btn { flex-direction: row; gap: 3px; }
:root[data-theme="dem"] .dp-b, :root[data-theme="dem"] .pet-c, :root[data-theme="dem"] .pet-d { background: #2f2812; } :root[data-theme="dem"] .dp-i small, :root[data-theme="dem"] .pet-c small, :root[data-theme="dem"] .pet-sk { color: #d9c5b1; } :root[data-theme="dem"] .dp-i b { color: #ffe9b0; }
@media (max-width: 640px) { .pet-wrap, .pet-d { grid-template-columns: 1fr; } }
:root[data-theme="dem"] 
/* Tu Luyện Cảnh Giới */
.hu-row.cg-row { border-left: 4px solid var(--cg); } .cg-n { color: var(--cg); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.cg-burst { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle, rgba(10,6,2,.55), rgba(10,6,2,.85)); animation: cgFade 1.9s ease forwards; pointer-events: none; }
.cg-ring { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 6px solid var(--cg); box-shadow: 0 0 40px var(--cg), inset 0 0 30px var(--cg); animation: cgRing 1.2s ease-out forwards; }
.cg-txt { position: relative; display: grid; justify-items: center; text-align: center; color: #fff; text-shadow: 0 2px 6px #000; }
.cg-txt small { font-size: 16px; font-weight: 800; } .cg-txt b { font-size: 56px; line-height: 1.1; color: var(--cg); filter: drop-shadow(0 0 12px var(--cg)); } .cg-txt em { font-style: normal; font-size: 15px; font-weight: 800; }
@keyframes cgRing { from { transform: scale(.2); opacity: 1; } to { transform: scale(9); opacity: 0; } }
@keyframes cgFade { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* Trận Pháp */
.lu-fm { align-self: center; margin: 4px auto 0; flex-direction: row; gap: 4px; }
.fm-box { max-width: 620px; } .fm-list { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.fm-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 12px; background: #fff6dc; border: 2px solid #c08a1a; }
.fm-row.on { background: linear-gradient(#fff3a0, #ffe08a); border-color: #c07a0a; } .fm-row.lock { opacity: .6; }
.fm-i b { display: block; font-size: 14px; color: #4a2a10; } .fm-i em { font-style: normal; font-size: 12px; color: #b0761a; } .fm-i small { display: block; font-size: 12px; font-weight: 700; color: #6a4a2a; } .fm-lk { color: #a03a1a !important; }
.fm-b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .fm-b .btn { flex-direction: row; gap: 3px; } .fm-on { font-style: normal; font-weight: 900; font-size: 12px; color: #2a7a3a; align-self: center; }
:root[data-theme="dem"] .fm-row { background: #2f2812; } :root[data-theme="dem"] .fm-row.on { background: #4a3a12; } :root[data-theme="dem"] .fm-i small { color: #d9c5b1; } :root[data-theme="dem"] .fm-i b { color: #ffe9b0; }

/* Thiên Đạo Lệnh */
.tdl-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 12px; background: #fff6dc; border: 2px solid #c08a1a; margin: 2px 4px 4px; }
.tdl-head b { font-size: 16px; color: #8a4a0a; } .tdl-head small { display: block; font-size: 12px; font-weight: 700; color: #6a4a2a; }
.tdl-head .bar { height: 7px; border-radius: 4px; background: #eadbc0; overflow: hidden; margin-top: 4px; } .tdl-head .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffcf3f, #e2901a); }
.tdl-head .q-all { border-radius: 10px; border: 2px solid #2a7a3a; background: #e6f6e6; font-weight: 900; padding: 6px 12px; } .tdl-head .q-all.on { background: linear-gradient(#9ff0a0, #3ec05a); color: #0a3a14; }
.tdl-src { margin: 2px 6px 6px; font-size: 12px; }
.tdl-cols, .tdl-row { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 6px; align-items: center; }
.tdl-cols { padding: 0 6px; font-size: 12px; font-weight: 900; color: #8a6a4a; } .tdl-cols em { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 6px; background: #c08a1a; color: #fff; }
.tdl-list { display: grid; gap: 4px; padding: 2px 4px 8px; }
.tdl-row { padding: 3px 4px; border-radius: 10px; } .tdl-row.big { background: rgba(255,210,90,.25); }
.tdl-b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #d8c8a8; color: #4a2a10; font-size: 15px; } .tdl-row.ok .tdl-b { background: linear-gradient(#ffe58a, #e2901a); }
.tdl-c { display: flex; gap: 4px; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 10px; border: 2px solid #c08a1a; background: #fff6dc; font: inherit; font-weight: 800; font-size: 13px; text-align: left; }
.tdl-c small { font-size: 11px; font-weight: 900; color: #2a7a3a; } .tdl-c.ready { background: linear-gradient(#fff3a0, #ffd560); box-shadow: 0 0 8px rgba(255,200,60,.7); } .tdl-c.got { opacity: .5; }
.tdl-c.gold { border-color: #b88a2a; background: linear-gradient(#fff2c8, #f3dc9a); opacity: .55; }
:root[data-theme="dem"] .tdl-head, :root[data-theme="dem"] .tdl-c { background: #2f2812; } :root[data-theme="dem"] .tdl-head small { color: #d9c5b1; } :root[data-theme="dem"] .tdl-c.gold { background: #3a3016; }
.tdl-r { display: inline-flex; gap: 10px; align-items: center; }

/* Bí Cảnh, Kỳ Ngộ, Sự kiện tuần */
.bc-card { margin: 4px; padding: 10px 14px; border-radius: 14px; background: #fff6dc; border: 2px solid #c08a1a; }
.bc-card small { font-weight: 800; color: #b0761a; } .bc-card h3 { margin: 2px 0 4px; color: #8a2a0a; font-size: 20px; } .bc-card p { margin: 3px 0; font-weight: 600; color: #4a2a10; }
.kn-modal { z-index: 80; }
.kn-box { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; max-width: 520px; margin: 0 auto 10px; padding: 12px; border-radius: 16px; background: #fff6dc; border: 3px solid #c08a1a; }
.kn-box img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; border: 2px solid #c08a1a; } .kn-box small { font-weight: 900; color: #b0761a; } .kn-box h3 { margin: 2px 0 4px; color: #4a2a10; } .kn-box p { margin: 0; font-weight: 600; font-size: 14px; color: #4a2a10; }
.kn-opts { display: grid; gap: 8px; max-width: 520px; margin: 0 auto; } .kn-opts .btn { text-align: center; } .kn-opts .btn b { font-size: 15px; } .kn-opts .btn small { font-size: 12px; font-weight: 700; }
:root[data-theme="dem"] .bc-card, :root[data-theme="dem"] .kn-box { background: #2f2812; } :root[data-theme="dem"] .bc-card p, :root[data-theme="dem"] .kn-box p, :root[data-theme="dem"] .kn-box h3 { color: #e8dcc8; }

/* icon kỹ năng vẽ tay (27/11) */
.hd5-ski span { position: relative; overflow: hidden; background: none !important; border-color: rgba(255,226,150,.9); }
.hd5-ski span .sk-b { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hd5-ski span .sk-o { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
.hd5-ski span .sk-p { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.9); transform-origin: 50% 10%; }
.hd5-ski span:has(.sk-o) .sk-b, .hd5-ski span:has(.sk-p) .sk-b { filter: brightness(.55) saturate(.8); }
.hs.hs-ic { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; }
.hs-i { position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,226,150,.85); }
.hs-i .sk-b { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-i .sk-o { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
.hs-i .sk-p { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.9); transform-origin: 50% 10%; }
.hs-i:has(.sk-o) .sk-b, .hs-i:has(.sk-p) .sk-b { filter: brightness(.55) saturate(.8); }

/* trang bị v2 (27/11) */
.eq-ic { position: relative; display: inline-block; width: 34px; height: 34px; border-radius: 7px; vertical-align: middle; margin-right: 6px; background: radial-gradient(circle at 40% 35%, #4a4a5a, #1a1a22); border: 2px solid var(--eqc, #4f8cff); flex: none; }
.eq-ic.r-R { --eqc: #4f8cff } .eq-ic.r-SR { --eqc: #9a5cff } .eq-ic.r-SSR { --eqc: #ff9f1a } .eq-ic.r-UR { --eqc: #ff3a3a; box-shadow: 0 0 8px #ff3a3a }
.eq-ic img { width: 100%; height: 100%; object-fit: contain; }
.eq-ic .eq-set { position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; }
.eq-cb { display: inline-flex; align-items: center; text-align: left; }
.eq-sets { margin-top: 8px; display: grid; gap: 6px; }
.eq-sets h4 { margin: 0; }
.eq-setr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.eq-setr img { width: 22px; height: 22px; }
.eq-setr span { opacity: .45; } .eq-setr span.on { opacity: 1; color: #ffd76a; font-weight: 700; }
.he { display: flex; align-items: center; gap: 4px; }
/* màn trang bị gọn cho 6 ô */
.xfer .eq-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(120, 80, 40, .25); font-size: 13px; }
.xfer .eq-row > b { grid-column: 2; }
.xfer .eq-row > span:not(.eq-ic) { grid-column: 2; font-size: 12.5px; }
.xfer .eq-row > .eq-ic { grid-row: span 2; }
.xfer .eq-row > button[data-un] { grid-column: 3; grid-row: 1 / span 2; }
.xfer .eq-up, .xfer .eq-cand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.xfer .eq-row .btn.small { min-height: 0; min-width: 0; padding: 4px 9px; font-size: 11.5px; line-height: 1.2; border-width: 2px; }
.xfer .eq-row .btn.small br { display: none; }
.xfer .eq-cand .btn.small { font-size: 11px; padding: 3px 7px; }
.xfer .eq-cand .eq-ic { width: 24px; height: 24px; margin-right: 4px; }
.xfer .eq-row .btn.small { flex-direction: row; gap: 4px; display: inline-flex; align-items: center; }
.xfer .eq-row .btn.small .ic, .xfer .eq-row .btn.small img.icon { width: 14px; height: 14px; }
.hd5-ski span .sk-f, .hs-i .sk-f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* tiềm năng theo sao (28/11) */
.pot { display: grid; gap: 4px; margin: 6px 0 10px; }
.pot h4 { margin: 0 0 2px; }
.pot-r { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; font-size: 12.5px; padding: 5px 8px; border-radius: 6px; background: rgba(0,0,0,.25); opacity: .5; }
.pot-r b { color: #c8b48a; white-space: nowrap; } .pot-r.on { opacity: 1; } .pot-r.on b { color: #ffd76a; }

/* thần khí bản mệnh (28/11) */
.tk { display: grid; gap: 8px; }
.tk-h { display: flex; gap: 10px; align-items: center; }
.tk-h b { display: block; font-size: 16px; color: #ffd76a; } .tk-h small { opacity: .8; }
.tk-ic { width: 64px; height: 64px; border-radius: 10px; border: 2px solid #ff9f1a; background: radial-gradient(circle, #5a3a1a, #1a1208); display: grid; place-items: center; flex: none; }
.tk-ic img { width: 100%; height: 100%; object-fit: contain; }
.tk-m { display: grid; gap: 3px; } .tk-m div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px; font-size: 12.5px; opacity: .5; padding: 3px 6px; border-radius: 5px; background: rgba(0,0,0,.25); }
.tk-m div.on { opacity: 1; } .tk-m i { font-style: normal; font-weight: 800; color: #ffd76a; }

/* viễn chinh (28/11) */
.vc-screen { background: linear-gradient(rgba(255,248,230,.55), rgba(255,248,230,.75)), url('../art/bg/dongphu_bg.webp') center / cover no-repeat; }
.vc-body { display: grid; gap: 6px; padding: 8px 14px 20px; overflow-y: auto; max-height: calc(100% - 110px); }
.vc-body h4 { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; }
.vc-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(255,252,240,.85); border: 1px solid rgba(140,90,40,.3); }
.vc-q b { display: block; font-size: 13.5px; } .vc-q small { font-size: 12px; opacity: .85; } .vc-q.run { border-color: #c99a3a; }
.vc-t { font-size: 12px; font-weight: 700; color: #8a5a1a; white-space: nowrap; } .vc-b { display: flex; gap: 4px; }
.vc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 50vh; overflow-y: auto; }
.vc-h { background: rgba(0,0,0,.08); border: 2px solid transparent; border-radius: 8px; padding: 3px; display: grid; justify-items: center; cursor: pointer; }
.vc-h img { width: 48px; height: 48px; border-radius: 50%; } .vc-h small { font-size: 10px; line-height: 1.1; text-align: center; }
.vc-h.f, .vc-h.r { background: rgba(80,160,80,.15); } .vc-h.f.r { background: rgba(80,160,80,.32); } .vc-h.on { border-color: #e0a020; background: rgba(255,200,80,.4); }

/* tiên minh (28/11) */
.tm-screen { background: linear-gradient(rgba(255,248,230,.45), rgba(255,248,230,.7)), url('../art/bg/tienminh_bg.webp') center / cover no-repeat; }
.tm-head { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(40,24,10,.82); color: #fff3d0; }
.tm-head b { font-size: 18px; } .tm-head span { font-size: 12.5px; }
.tm-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; } .tm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd76a, #ff9f1a); }
.tm-bar.boss i { background: linear-gradient(90deg, #ff6a5a, #c0302a); }
.tm-g { grid-template-columns: auto minmax(0, 1fr) auto; }
.tm-gi { width: 40px; height: 40px; vertical-align: middle; } .tm-head .tm-gi { width: 30px; height: 30px; }
.vc-screen { background: linear-gradient(rgba(255,248,230,.55), rgba(255,248,230,.75)), url('../art/bg/dongphu_bg.webp') center / cover no-repeat; }

/* lễ hội tân thủ + trợ chiến (28/11) */
.lh-ms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.lh-ms .pb { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; border: 2px solid #c9a050; background: #fff6dc; font-size: 11px; }
.lh-ms .pb.ready { background: #ffe08a; box-shadow: 0 0 10px #ffc23a; } .lh-ms .pb.done { opacity: .5; }
.lu-extra { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 4px 0; }
.lu-extra .btn.small { min-height: 0; padding: 4px 9px; font-size: 12px; }

/* du ngoạn (28/11) */
.th-map { display: grid; grid-template-columns: repeat(5, minmax(0, 44px)); gap: 3px; justify-content: center; }
.th-c { aspect-ratio: 1; border-radius: 8px; border: 2px solid rgba(120,80,40,.4); background: rgba(60,40,20,.55); color: #fff; font-size: 20px; display: grid; place-items: center; line-height: 1; padding: 0; }
.th-c.op { background: rgba(255,248,225,.92); color: #333; } .th-c.at { background: #ffd76a; border-color: #c07a10; } .th-c small { font-size: 8.5px; color: #a02a1a; font-weight: 700; }
.fi-bar { position: relative; height: 26px; border-radius: 13px; background: linear-gradient(90deg, #2a5a8a, #1a3a6a); margin: 14px 10%; overflow: hidden; border: 2px solid #c9a050; }
.fi-bar i { position: absolute; top: 0; bottom: 0; background: rgba(110,230,120,.75); } .fi-bar b { position: absolute; top: -2px; width: 6px; height: 30px; margin-left: -3px; background: #fff; box-shadow: 0 0 6px #fff; left: 0; }
.mi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 46px)); gap: 4px; justify-content: center; }
.mi-c { aspect-ratio: 1; border-radius: 6px; border: 2px solid #6a4a2a; background: linear-gradient(135deg, #8a6a4a, #4a3420); font-size: 18px; color: #fff; padding: 0; }
.mi-c.op { background: rgba(255,248,225,.9); }
.tree { font-size: 110px; text-align: center; line-height: 1.1; }
.tk .vc-q, .hd5 .vc-q { background: rgba(0,0,0,.32); border-color: rgba(255,220,150,.25); } .tk .vc-q b { color: #ffd76a; } .tk .vc-q small { color: #e8dcc0; } .tk .vc-q .vc-t { color: #9fe08a; }

/* ảnh thay emoji (28/11) */
.ic.ic-img { width: 18px; height: 18px; object-fit: contain; margin-right: 2px; }
.th-c img { width: 82%; height: 82%; object-fit: contain; } .th-c img.fog { opacity: .55; }
.mi-c img { width: 84%; height: 84%; object-fit: contain; } .mi-crack { display: block; width: 60%; height: 60%; margin: auto; border: 2px dashed rgba(255,255,255,.6); border-radius: 50%; }
.tree img { width: 170px; height: 170px; object-fit: contain; }

/* chiêu mộ điện ảnh (28/11) */
.gcx { position: fixed; inset: 0; z-index: 60; background: #04030a; overflow: hidden; cursor: pointer; --gc: #ffcf3a; }
.gcx.shake { animation: gcxShake .4s; } @keyframes gcxShake { 20% { transform: translate(-6px, 3px) } 40% { transform: translate(5px, -4px) } 60% { transform: translate(-4px, 2px) } 80% { transform: translate(3px, -2px) } }
.gcx-sky { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #3a5a9a 0%, #12183a 55%, #04030a 100%); animation: gcxDive 2s ease-in forwards; }
@keyframes gcxDive { from { transform: scale(1); filter: brightness(1) } to { transform: scale(1.6); filter: brightness(.3) } }
.fxs { position: absolute; background-repeat: no-repeat; pointer-events: none; }
.gcx-full { inset: -10%; width: 120%; height: 120%; animation: gcxZoom 1.6s ease-in forwards; } @keyframes gcxZoom { 0% { opacity: 0 } 15% { opacity: 1 } 75% { opacity: 1 } 100% { transform: scale(1.9); opacity: 0 } }
.gcx-comet { width: 70vmin; height: 70vmin; left: 50%; top: 50%; margin: -35vmin 0 0 -35vmin; animation: gcxComet .9s ease-out forwards; }
@keyframes gcxComet { from { transform: translate(-60vw, -45vh) scale(.6) } to { transform: translate(10vw, 6vh) scale(1.15) } }
.gcx-mid { width: 80vmin; height: 80vmin; left: 50%; top: 50%; margin: -40vmin 0 0 -40vmin; } .gcx-mid.big { width: 110vmin; height: 146vmin; margin: -73vmin 0 0 -55vmin; }
.gcx-flash { position: absolute; inset: 0; background: radial-gradient(circle, #fff 0%, var(--gc) 45%, transparent 80%); animation: gcxFlash .6s ease-out forwards; pointer-events: none; }
.gcx-flash.soft { animation-duration: .35s; } @keyframes gcxFlash { from { opacity: 1 } to { opacity: 0 } }
.gcx-sl { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.gcx-line { width: 90vw; height: 30vw; max-height: 220px; left: 5vw; top: -15vw; }
.gcx-stars { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); display: flex; gap: 2px; }
.gcx-star { position: relative; width: 74px; height: 74px; margin: 0 -8px; filter: drop-shadow(0 0 8px var(--gc)); }
.gcx-card { position: absolute; inset: 0; animation: gcxIn .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes gcxIn { from { transform: scale(1.25); opacity: 0; filter: brightness(3) } to { transform: none; opacity: 1; filter: none } }
.gcx-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.75) saturate(1.15); }
.gcx-card:not(.big) .gcx-bg { filter: brightness(.45) blur(2px); }
.gcx-hero { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 92%; max-width: 95%; object-fit: contain; filter: drop-shadow(0 0 24px var(--gc)); animation: gcxHero 4s ease-out forwards; }
@keyframes gcxHero { from { transform: translateX(-55%) scale(1.06) } to { transform: translateX(-50%) scale(1) } }
.gcx-card:not(.big) .gcx-hero { height: 70%; }
.gcx-tier { position: absolute; top: 6%; right: 5%; font: 900 clamp(40px, 9vw, 86px)/1 'Baloo 2', sans-serif; color: #fff; -webkit-text-stroke: 3px var(--gc); text-shadow: 0 0 20px var(--gc), 0 4px 0 #000; transform: skewX(-10deg); animation: gcxTier .6s .2s both cubic-bezier(.2,1.6,.4,1); }
@keyframes gcxTier { from { transform: skewX(-10deg) scale(2.4); opacity: 0 } to { transform: skewX(-10deg) scale(1); opacity: 1 } }
.gcx-name { position: absolute; left: 5%; bottom: 14%; color: #fff; text-shadow: 0 2px 6px #000; animation: gcxName .5s .35s both ease-out; }
@keyframes gcxName { from { transform: translateX(-40px); opacity: 0 } to { transform: none; opacity: 1 } }
.gcx-name small { font-size: 14px; opacity: .9; } .gcx-name h2 { margin: 2px 0; font: 900 clamp(28px, 6vw, 52px)/1.1 'Baloo 2', sans-serif; letter-spacing: 1px; }
.gcx-st { color: var(--gc); font-size: 22px; letter-spacing: 2px; text-shadow: 0 0 8px var(--gc); }
.gcx-new, .gcx-dup { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 10px; font: 800 13px sans-serif; font-style: normal; background: #ff3a5a; color: #fff; } .gcx-dup { background: #5a4a8a; }
.gcx-tap { position: absolute; bottom: 4%; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; opacity: .8; animation: gcxBlink 1.2s infinite; }
@keyframes gcxBlink { 50% { opacity: .35 } }
.gcx-skip { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 5; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 14px; padding: 5px 14px; font-size: 13px; }

/* cảm giác nhận thưởng + trò chơi nhỏ (28/11) */
.scr-shake { animation: scrShake .35s; } .scr-shake2 { animation: scrShake2 .55s; }
@keyframes scrShake { 25% { transform: translate(-4px, 2px) } 50% { transform: translate(4px, -2px) } 75% { transform: translate(-2px, 1px) } }
@keyframes scrShake2 { 15% { transform: translate(-9px, 4px) } 30% { transform: translate(8px, -5px) } 45% { transform: translate(-6px, 3px) } 60% { transform: translate(5px, -3px) } 80% { transform: translate(-2px, 1px) } }
.fnum { position: fixed; z-index: 80; transform: translate(-50%, -50%); font: 900 22px 'Baloo 2', sans-serif; color: #fff; -webkit-text-stroke: 1px #3a2200; text-shadow: 0 2px 0 #3a2200, 0 0 10px rgba(0,0,0,.5); pointer-events: none; white-space: nowrap; animation: fnum 1.6s ease-out forwards; }
.fnum.gold { color: #ffe066; } .fnum.big { font-size: 38px; } .fnum.bad { color: #ff8a7a; } .fnum.blue { color: #8fe0ff; }
@keyframes fnum { 0% { transform: translate(-50%, -30%) scale(.4); opacity: 0 } 15% { transform: translate(-50%, -60%) scale(1.25); opacity: 1 } 30% { transform: translate(-50%, -70%) scale(1) } 100% { transform: translate(-50%, -190%) scale(1); opacity: 0 } }
.fly-res { position: fixed; z-index: 85; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; transition: transform .25s ease-out; filter: drop-shadow(0 0 6px rgba(255,220,100,.9)); }
.fly-res .ic { width: 30px; height: 30px; margin: 0; }
.resbar span.pop { animation: resPop .45s; } @keyframes resPop { 40% { transform: scale(1.3); filter: brightness(1.8) } }
.rwp { position: fixed; inset: 0; z-index: 78; background: rgba(10,6,2,.72); display: grid; place-items: center; animation: rwpIn .3s; } .rwp.out { animation: rwpOut .35s forwards; }
@keyframes rwpIn { from { opacity: 0 } } @keyframes rwpOut { to { opacity: 0 } }
.rwp-rays { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px; background: repeating-conic-gradient(rgba(255,220,120,.16) 0 8deg, transparent 8deg 20deg); animation: rays 14s linear infinite; border-radius: 50%; -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%); mask: radial-gradient(circle, #000 20%, transparent 65%); }
@keyframes rays { to { transform: rotate(360deg) } }
.rwp-box { position: relative; text-align: center; padding: 18px 22px; } .rwp-box h3 { font: 900 30px 'Baloo 2', sans-serif; color: #ffe08a; text-shadow: 0 3px 0 #6a3a00, 0 0 18px #ffb43a; margin: 0 0 14px; letter-spacing: 1px; animation: gcxTier .5s both cubic-bezier(.2,1.6,.4,1); }
.rwp-items { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 560px; margin-bottom: 16px; }
.rwp-i { width: 92px; padding: 10px 4px 8px; border-radius: 12px; background: linear-gradient(180deg, #fff6d8, #e8c77a); border: 3px solid #b8862a; box-shadow: 0 4px 0 #6a4a10, 0 0 16px rgba(255,210,90,.6); animation: rwpItem .45s both cubic-bezier(.2,1.6,.4,1); }
@keyframes rwpItem { from { transform: scale(0) rotate(-12deg); opacity: 0 } }
.rwp-i .ic { width: 44px; height: 44px; display: block; margin: 0 auto 4px; } .rwp-i b { display: block; font: 900 18px 'Baloo 2', sans-serif; color: #5a2a00; } .rwp-i small { font-size: 11px; color: #6a4a20; }
.crit-banner { position: fixed; left: 0; right: 0; top: 34%; z-index: 82; text-align: center; pointer-events: none; animation: critIn 1.5s forwards; }
.crit-banner b { display: inline-block; font: 900 clamp(40px, 9vw, 80px)/1 'Baloo 2', sans-serif; color: #fff2a0; -webkit-text-stroke: 3px #b4400a; text-shadow: 0 0 24px #ff8a1a, 0 5px 0 #6a2000; transform: skewX(-8deg); }
@keyframes critIn { 0% { transform: scale(3); opacity: 0 } 12% { transform: scale(.92); opacity: 1 } 20% { transform: scale(1) } 80% { opacity: 1 } 100% { transform: scale(1.1); opacity: 0 } }
.tree img.shake { animation: treeShake .9s cubic-bezier(.3,.6,.5,1); transform-origin: 50% 92%; }
@keyframes treeShake { 10% { transform: rotate(-7deg) } 25% { transform: rotate(6deg) scale(1.03) } 40% { transform: rotate(-5deg) } 55% { transform: rotate(3deg) } 70% { transform: rotate(-1.5deg) } }
.coin-fall { position: fixed; z-index: 76; width: 26px; height: 26px; pointer-events: none; animation: coinFall 1.1s cubic-bezier(.4,0,.9,.6) forwards; } .coin-fall .ic { width: 26px; height: 26px; margin: 0; }
@keyframes coinFall { 0% { transform: translate(0, -10px) rotate(0); opacity: 0 } 10% { opacity: 1 } 100% { transform: translate(var(--dx), 190px) rotate(var(--rot)); opacity: 0 } }
.fi-pond { position: relative; height: 130px; margin: 8px 6%; border-radius: 50% / 40%; background: radial-gradient(ellipse at 50% 40%, #6ac4e8 0%, #2a7ab0 55%, #144a78 100%); border: 4px solid #8a6a3a; box-shadow: inset 0 8px 20px rgba(0,0,0,.35); overflow: hidden; }
.fi-pond::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(170deg, rgba(255,255,255,.08) 0 6px, transparent 6px 22px); animation: wave 4s linear infinite; }
@keyframes wave { to { background-position: 0 44px } }
.fi-rip { left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; opacity: .8; }
.fi-bob { position: absolute; left: 50%; top: 40%; width: 18px; height: 24px; margin-left: -9px; border-radius: 50% 50% 45% 45%; background: linear-gradient(180deg, #ff4a3a 50%, #fff 50%); border: 2px solid #3a1a0a; opacity: 0; z-index: 2; }
.fi-bob.cast { opacity: 1; animation: bobDrop .5s ease-in, bob 1.4s .5s ease-in-out infinite; } .fi-bob.bite { opacity: 1; animation: bite .25s ease-in-out infinite; }
@keyframes bobDrop { from { transform: translateY(-120px) } } @keyframes bob { 50% { transform: translateY(4px) } } @keyframes bite { 0%, 100% { transform: translateY(6px) rotate(-10deg) } 50% { transform: translateY(14px) rotate(10deg) } }
.fi-bar.off { visibility: hidden; } .btn.pulse { animation: pulseBtn .5s infinite alternate; } @keyframes pulseBtn { to { transform: scale(1.08); filter: brightness(1.2) } }
.fi-show { position: fixed; inset: 0; z-index: 79; background: rgba(4,12,24,.78); display: grid; place-items: center; cursor: pointer; --fc: #9fd0ff; }
.fis-box { position: relative; text-align: center; color: #fff; } .fis-box h3 { font: 900 32px 'Baloo 2', sans-serif; margin: 0; color: var(--fc); text-shadow: 0 3px 0 #000, 0 0 16px var(--fc); }
.fis-box small { display: inline-block; padding: 2px 12px; border-radius: 10px; background: var(--fc); color: #102030; font-weight: 800; }
.fis-fish { width: min(70vw, 320px); height: auto; filter: drop-shadow(0 0 22px var(--fc)); animation: fishJump .8s cubic-bezier(.2,1.5,.4,1); }
@keyframes fishJump { 0% { transform: translateY(220px) rotate(40deg) scale(.4) } 60% { transform: translateY(-20px) rotate(-8deg) scale(1.08) } 100% { transform: none } }
.fis-new { position: absolute; top: 8px; right: 0; font: 900 20px sans-serif; font-style: normal; color: #fff; background: #ff3a5a; padding: 2px 10px; border-radius: 10px; transform: rotate(10deg); animation: gcxTier .5s .5s both cubic-bezier(.2,1.6,.4,1); }
.fis-rew { margin-top: 8px; font: 800 20px 'Baloo 2', sans-serif; } .fis-rew .ic { width: 26px; height: 26px; vertical-align: -6px; }
.mi-c.mi-hit { animation: miHit .3s; } @keyframes miHit { 30% { transform: translate(-3px, 2px) rotate(-4deg) } 60% { transform: translate(3px, -1px) rotate(3deg) } }
.mi-pop { animation: miPop .5s cubic-bezier(.2,1.8,.4,1); } @keyframes miPop { from { transform: scale(0) } }
.th-c.th-step img { animation: miPop .4s cubic-bezier(.2,1.8,.4,1); }
.th-clash { position: fixed; inset: 0; z-index: 77; background: rgba(20,8,4,.75); display: flex; align-items: center; justify-content: center; gap: 4vw; }
.thc-side { width: 34vw; max-width: 260px; text-align: center; transition: transform .35s cubic-bezier(.5,0,.6,1.4); } .thc-side img { width: 100%; height: 34vh; object-fit: contain; filter: drop-shadow(0 0 12px #fff8); }
.thc-side.l { animation: thcInL .45s both; } .thc-side.r { animation: thcInR .45s both; }
@keyframes thcInL { from { transform: translateX(-30vw) } } @keyframes thcInR { from { transform: translateX(30vw) } }
.th-clash.hit .thc-side.l { animation: thcHitL .35s; } .th-clash.hit .thc-side.r { animation: thcHitR .35s; }
@keyframes thcHitL { 50% { transform: translateX(6vw) } } @keyframes thcHitR { 50% { transform: translateX(-6vw) } }
.thc-side b { display: block; font: 900 22px 'Baloo 2', sans-serif; color: #ffe08a; } .thc-side i { display: block; height: 10px; border-radius: 5px; background: #3a2010; overflow: hidden; position: relative; }
.thc-side i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, #ffb43a, #ff5a2a); }
.thc-side.r i::after { background: linear-gradient(90deg, #c03aff, #ff3a5a); left: auto; right: 0; }
.thc-vs { font: 900 44px 'Baloo 2', sans-serif; color: #fff; -webkit-text-stroke: 2px #b4400a; text-shadow: 0 0 20px #ff8a1a; }
.thc-res { position: absolute; left: 0; right: 0; top: 14%; text-align: center; font: 900 clamp(40px, 9vw, 72px) 'Baloo 2', sans-serif; opacity: 0; }
.thc-res.win, .thc-res.lose { animation: critIn 1.2s forwards; } .thc-res.win { color: #fff2a0; -webkit-text-stroke: 3px #b4400a; text-shadow: 0 0 24px #ff8a1a; } .thc-res.lose { color: #c8d0e0; -webkit-text-stroke: 3px #3a4a6a; }

/* ===== LUỒNG VÀO GAME (28/11) ===== */
.ent-splash, .ent-load, .sv-pick, .cr-wrap, .prolog { position: fixed; inset: 0; z-index: 200; overflow: hidden; font-family: 'Baloo 2', sans-serif; }
.ent-splash { background: radial-gradient(circle at 50% 45%, #3a2060 0%, #160a24 60%, #07030c 100%); display: grid; place-items: center; cursor: pointer; transition: opacity .5s; }
.ent-splash.out, .ent-load.out, .cr-wrap.out, .prolog.out { opacity: 0; transition: opacity .45s; }
.ent-logo { display: block; pointer-events: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.ent-splash .ent-logo { width: min(66vw, 640px); max-height: 70vh; object-fit: contain; animation: logoIn 1.6s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.7); filter: brightness(3) blur(6px) } 60% { opacity: 1; filter: brightness(1.3) } 100% { filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)) } }
.ent-warn, .ent-warn2 { position: absolute; bottom: 3%; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font: 600 12px sans-serif; text-shadow: 0 1px 3px #000; }
.ent-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ent-bg.kb { animation: kenb 24s ease-in-out infinite alternate; } @keyframes kenb { from { transform: scale(1.02) } to { transform: scale(1.1) translate(-1%, 1%) } }
.ent-load .ent-logo.sm { position: absolute; top: 4%; left: 50%; margin-left: max(-17vw, -170px); width: min(34vw, 340px); animation: floatY 3s ease-in-out infinite; }
@keyframes floatY { 50% { translate: 0 -6px } }
.ld-box { position: absolute; left: 8%; right: 8%; bottom: 9%; text-align: center; }
.ld-tip { color: #fff; font: 700 15px 'Baloo 2', sans-serif; text-shadow: 0 2px 4px #000, 0 0 8px rgba(0,0,0,.6); margin-bottom: 14px; opacity: 0; } .ld-tip.in { animation: tipIn .5s forwards; } @keyframes tipIn { to { opacity: 1 } }
.ld-bar { position: relative; height: 20px; border-radius: 10px; background: rgba(40,20,50,.75); border: 3px solid #f0c060; box-shadow: 0 0 0 2px #6a3a10, 0 4px 10px rgba(0,0,0,.5); }
.ld-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(180deg, #fff2a0, #ffc23a 50%, #e08a10); box-shadow: 0 0 12px #ffd86a; }
.ld-bar b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 900 13px sans-serif; text-shadow: 0 1px 2px #000; }
.ld-run { position: absolute; bottom: 8px; width: 64px; margin-left: -32px; animation: runBob .35s ease-in-out infinite alternate; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
@keyframes runBob { to { transform: translateY(-4px) rotate(3deg) } }
.ent-ver { position: absolute; left: 12px; bottom: 8px; color: rgba(255,255,255,.75); font: 600 11px sans-serif; text-shadow: 0 1px 2px #000; }
.ent-login { position: absolute; inset: 0; overflow: hidden; font-family: 'Baloo 2', sans-serif; }
.ent-login .ent-logo.big { position: absolute; top: 3%; left: 50%; margin-left: max(-22vw, -260px); width: min(44vw, 520px); animation: logoIn 1.2s both, floatY 4s 1.2s ease-in-out infinite; }
.ent-petals i { position: absolute; top: -20px; width: 10px; height: 7px; border-radius: 50% 0 50% 0; background: #ffc0d8; opacity: .85; animation: petal linear infinite; }
@keyframes petal { to { transform: translate(-80px, 110vh) rotate(720deg) } }
.ent-top { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; display: flex; gap: 8px; z-index: 2; }
.ent-ib { display: flex; align-items: center; gap: 4px; background: rgba(40,20,10,.6); border: 2px solid #e8c070; color: #ffe9b0; border-radius: 16px; padding: 5px 12px; font: 700 13px 'Baloo 2', sans-serif; }
.ent-ib img { width: 20px; height: 20px; }
.ent-mid { position: absolute; left: 0; right: 0; bottom: 8%; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.sv-bar { display: flex; align-items: center; gap: 8px; min-width: min(80vw, 380px); padding: 8px 16px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,250,235,.95), rgba(245,225,180,.95)); border: 3px solid #c8902a; box-shadow: 0 3px 0 #7a4a10, 0 6px 14px rgba(0,0,0,.4); font: 800 16px 'Baloo 2', sans-serif; color: #5a2a00; }
.sv-bar b { flex: 1; text-align: left; } .sv-bar span { font-size: 13px; color: #a05a10; }
.sv-bar em, .sv-b em { font-style: normal; font-size: 11px; padding: 1px 8px; border-radius: 8px; color: #fff; } em.new { background: #2ab450; } em.rec { background: #ff7a1a; } em.hot { background: #ff8a1a; } em.full { background: #d03a3a; }
.sv-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 6px currentColor; } .sv-dot.new { background: #3ae070; color: #3ae070; } .sv-dot.hot { background: #ffa21a; color: #ffa21a; } .sv-dot.full { background: #ff4a4a; color: #ff4a4a; }
.ent-go { font: 900 26px 'Baloo 2', sans-serif !important; padding: 10px 64px !important; letter-spacing: 2px; animation: goPulse 1.6s ease-in-out infinite; }
@keyframes goPulse { 50% { transform: scale(1.05); filter: brightness(1.12) } }
.ent-acc { color: #fff; font: 600 13px sans-serif; text-shadow: 0 1px 3px #000; } .ent-acc a { color: #ffe066; text-decoration: underline; cursor: pointer; }
.ent-tos { color: rgba(255,255,255,.85); font: 500 11px sans-serif; text-shadow: 0 1px 2px #000; display: flex; align-items: center; gap: 4px; }
.ent-login .ent-warn2 { bottom: 6px; }
.ent-notice { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: rgba(0,0,0,.55); }
.nt-box { width: min(92vw, 620px); max-height: 82vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #fff8e6, #f3dfb0); border: 4px solid #c8902a; border-radius: 16px; box-shadow: 0 0 0 3px #6a3a10, 0 10px 30px rgba(0,0,0,.6); padding: 14px 16px; }
.nt-box h3 { margin: 0 0 8px; text-align: center; font: 900 24px 'Baloo 2', sans-serif; color: #8a3a00; }
.nt-tabs { display: flex; gap: 6px; margin-bottom: 8px; } .nt-tabs button { flex: 1; padding: 6px; border-radius: 10px; border: 2px solid #c8902a; background: #f8ecd0; font: 700 14px 'Baloo 2', sans-serif; color: #7a4a10; } .nt-tabs button.on { background: linear-gradient(180deg, #ffd86a, #f0a020); color: #5a2000; }
.nt-list { overflow: auto; flex: 1; margin-bottom: 10px; } .nt-i { background: rgba(255,255,255,.7); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; border-left: 5px solid #e09020; } .nt-i b { color: #8a3a00; font-size: 15px; } .nt-i p { margin: 3px 0 0; font-size: 13px; color: #4a3020; }
.nt-box > .btn { align-self: center; }
.sv-pick { z-index: 205; display: grid; place-items: center; }
.sv-box { position: relative; width: min(94vw, 780px); max-height: 88vh; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255,248,228,.97), rgba(240,215,160,.97)); border: 4px solid #c8902a; border-radius: 18px; box-shadow: 0 0 0 3px #6a3a10, 0 12px 34px rgba(0,0,0,.6); padding: 12px 14px; }
.sv-box h3 { margin: 0 0 8px; text-align: center; font: 900 24px 'Baloo 2', sans-serif; color: #8a3a00; }
.sv-cols { display: flex; gap: 10px; min-height: 0; flex: 1; } .sv-tabs { display: flex; flex-direction: column; gap: 6px; width: 140px; flex-shrink: 0; }
.sv-tabs button { padding: 9px 6px; border-radius: 10px; border: 2px solid #c8902a; background: #f8ecd0; font: 800 14px 'Baloo 2', sans-serif; color: #7a4a10; } .sv-tabs button.on { background: linear-gradient(180deg, #ffd86a, #f0a020); color: #5a2000; box-shadow: 0 0 10px rgba(255,180,40,.6); }
.sv-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; overflow: auto; align-content: start; padding: 2px; }
.sv-b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; border: 2px solid #d8b070; background: #fffaf0; font: 800 15px 'Baloo 2', sans-serif; color: #4a2a00; text-align: left; }
.sv-b.on { border-color: #ff8a1a; box-shadow: 0 0 0 2px #ffb43a, 0 0 12px rgba(255,160,40,.6); background: #fff2d0; } .sv-b b { flex: 1; }
.sv-me { width: 100%; display: flex; align-items: center; gap: 6px; font: 600 12px sans-serif; color: #7a5a30; } .sv-me img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #c8902a; }
.sv-legend { display: flex; gap: 14px; justify-content: center; margin: 8px 0; font: 600 12px sans-serif; color: #6a4a20; } .sv-legend span { display: flex; align-items: center; gap: 4px; }
.sv-box > .btn { align-self: center; }
.cwipe { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.cwipe i { position: absolute; top: -10%; bottom: -10%; width: 62%; background: radial-gradient(ellipse at 30% 30%, #fff 0 22%, transparent 23%), radial-gradient(ellipse at 70% 60%, #fff 0 26%, transparent 27%), radial-gradient(ellipse at 40% 85%, #fff 0 22%, transparent 23%), linear-gradient(90deg, #ffffff, #fbe9ff); filter: blur(2px); animation: cwIn .6s ease-in forwards; }
.cwipe i.l { left: -62%; border-radius: 0 50% 50% 0; } .cwipe i.r { right: -62%; border-radius: 50% 0 0 50%; animation-name: cwInR; }
@keyframes cwIn { to { left: 0 } } @keyframes cwInR { to { right: 0 } }
.cwipe.open i.l { animation: cwOut .7s ease-out forwards; } .cwipe.open i.r { animation: cwOutR .7s ease-out forwards; }
@keyframes cwOut { from { left: 0 } to { left: -70% } } @keyframes cwOutR { from { right: 0 } to { right: -70% } }
.prolog { z-index: 220; background: #000; cursor: pointer; transition: opacity .5s; }
.pl-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: plIn 1s ease-out both, kenb 12s ease-in-out infinite alternate; }
@keyframes plIn { from { opacity: 0; filter: brightness(2) } }
.pl-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 8% 26px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85) 45%); }
.pl-cap p { margin: 0; color: #fff; font: 700 clamp(16px, 2.6vw, 22px)/1.45 'Baloo 2', sans-serif; text-shadow: 0 2px 4px #000; min-height: 2.9em; }
.pl-n { position: absolute; bottom: 8px; right: 14px; color: rgba(255,255,255,.6); font: 600 12px sans-serif; }
.cr-wrap { z-index: 215; display: grid; place-items: center; transition: opacity .4s; }
.cr-box { position: relative; width: min(94vw, 720px); max-height: 92vh; overflow: auto; background: linear-gradient(180deg, rgba(255,248,228,.97), rgba(240,215,160,.97)); border: 4px solid #c8902a; border-radius: 18px; box-shadow: 0 0 0 3px #6a3a10, 0 12px 34px rgba(0,0,0,.6); padding: 12px 16px; text-align: center; }
.cr-box h3 { margin: 0 0 6px; font: 900 24px 'Baloo 2', sans-serif; color: #8a3a00; } .cr-box h4 { margin: 10px 0 6px; color: #8a3a00; font: 800 16px 'Baloo 2', sans-serif; }
.cr-row { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cr-avs { display: grid; grid-template-columns: repeat(4, 52px); gap: 6px; } .cr-av { width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 3px solid #d8b070; overflow: hidden; background: #fff; } .cr-av img { width: 100%; height: 100%; object-fit: cover; }
.cr-av.on { border-color: #ff8a1a; box-shadow: 0 0 0 2px #ffb43a, 0 0 12px #ffb43a; transform: scale(1.08); }
.cr-name { text-align: left; } .cr-name label { font: 800 14px 'Baloo 2', sans-serif; color: #7a4a10; } .cr-name > div { display: flex; gap: 6px; margin: 4px 0 2px; }
.cr-name input { width: 190px; padding: 7px 10px; border-radius: 10px; border: 2px solid #c8902a; font: 800 16px 'Baloo 2', sans-serif; color: #4a2a00; background: #fffaf0; } .cr-name small { color: #8a6a40; font-size: 11px; }
.cr-heroes { display: flex; gap: 10px; justify-content: center; } .cr-h { width: 31%; max-width: 190px; padding: 6px; border-radius: 14px; border: 3px solid #d8b070; background: #fffaf0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: 'Baloo 2', sans-serif; }
.cr-h img { height: 110px; max-width: 100%; object-fit: contain; } .cr-h b { font-size: 16px; color: #4a2a00; } .cr-h small { font-size: 11px; color: #7a5a30; line-height: 1.25; }
.cr-h.on { border-color: #ff8a1a; box-shadow: 0 0 0 2px #ffb43a, 0 0 14px #ffb43a; background: #fff2d0; transform: translateY(-3px); }
.cr-box > .btn { margin-top: 10px; }
.guide { position: fixed; inset: 0; z-index: 130; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); cursor: pointer; animation: rwpIn .3s; } .guide.out { animation: rwpOut .3s forwards; }
.gd-img { position: absolute; left: 1%; bottom: 0; height: 62%; max-width: 40%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); animation: thcInL .45s both; }
.gd-box { position: absolute; left: 22%; right: 4%; bottom: 4%; min-height: 96px; padding: 12px 18px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,250,235,.97), rgba(245,225,180,.97)); border: 3px solid #c8902a; box-shadow: 0 0 0 2px #6a3a10, 0 6px 18px rgba(0,0,0,.5); font-family: 'Baloo 2', sans-serif; }
.gd-box b { position: absolute; top: -16px; left: 16px; padding: 2px 14px; border-radius: 10px; background: linear-gradient(180deg, #ffd86a, #f0a020); color: #5a2000; font-size: 15px; border: 2px solid #8a4a10; }
.gd-box p { margin: 6px 0 4px; color: #3a2000; font: 700 15px/1.45 'Baloo 2', sans-serif; min-height: 2.9em; } .gd-box small { display: block; text-align: right; color: #a06a20; font-size: 11px; animation: gcxBlink 1.2s infinite; }
@media (max-height: 420px) { .ent-login .ent-logo.big { width: min(36vw, 420px); margin-left: max(-18vw, -210px); } .sv-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } .cr-h img { height: 80px; } }
