/* Alliance Wars - heroes panel (v2): tall rarity cards, hero stage with skills arc and gear slots, gear/training popups, recruit banners, pull reveal. */
.heroes { --r0: #4fa3ff; --r1: #b36bff; --r2: #f5c63c; }
.heroes small { display: block; font-size: 12px; color: var(--ink2); }
.heroes h3 { font-size: 19px; }
.hr-por { position: relative; display: inline-grid; place-items: center; place-content: center; overflow: hidden; padding: 0; box-sizing: border-box; flex: none; border-radius: 12px; border: 3px solid var(--rc, #4a5b80); background: radial-gradient(circle at 50% 35%, #3a4a6b, #161d2c); }
.hr-por.r0 { --rc: var(--r0, #4fa3ff); } .hr-por.r1 { --rc: var(--r1, #b36bff); } .hr-por.r2 { --rc: var(--r2, #f5c63c); box-shadow: 0 0 10px rgba(245,198,60,.45); }
.hr-por.r1 { background: radial-gradient(circle at 50% 35%, #4b3a6b, #1d1630); } .hr-por.r2 { background: radial-gradient(circle at 50% 35%, #6b5530, #2a1e10); }
.hr-por.empty { border-style: dashed; opacity: .75; }
.hr-por .ic.hp { width: 50px; height: 50px; image-rendering: pixelated; } /* portraits fill their frame */
.hr-por.sm .ic.hp { width: 35px; height: 35px; } .hr-por.pm .ic.hp { width: 68px; height: 68px; } .hr-por.xl .ic.hp { width: 80px; height: 80px; }
.hr-por.empty .ic.hp { width: 32px; height: 32px; }
.hr-por.sm { width: 40px; height: 40px; border-width: 2px; border-radius: 9px; } .hr-por.pm { width: 76px; height: 76px; } .hr-por.lg { width: 56px; height: 56px; } .hr-por.xl { width: 96px; height: 96px; border-width: 4px; }
.hr-stars { display: inline-flex; gap: 1px; font-size: 13px; line-height: 1; color: #4a5368; } .hr-stars i { font-style: normal; } .hr-stars i.on { color: var(--gold); text-shadow: 0 1px 0 #000; }

/* shared: picker rows */
.hr-pick { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; }
.hr-pick-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--card); text-align: left; min-height: 52px; }
.hr-pick-row small { display: block; font-size: 12px; color: var(--ink2); }
.hr-por.xs { width: 26px; height: 26px; border-width: 2px; border-radius: 7px; } .hr-por.xs .ic.hp { width: 22px; height: 22px; }
.heroes .btn.small, .gl-md .btn, .gd-md .btn, .tg-md .btn { min-height: 44px; }
/* rarity stage colours (Rare blue, Epic purple, Legendary gold/orange) */
.hc.r0, .hdv.r0 { --s1: #5db5ff; --s2: #2a5f9e; --s3: #16304f; --rc: #4fa3ff; }
.hc.r1, .hdv.r1 { --s1: #c58bff; --s2: #6a3aa6; --s3: #2c1748; --rc: #b36bff; }
.hc.r2, .hdv.r2 { --s1: #ffd76a; --s2: #d0801f; --s3: #4f2a0c; --rc: #f5c63c; }
.ha { display: block; pointer-events: none; image-rendering: pixelated; }
.ha.full { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.ha.bust { width: 100%; height: 100%; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.ha.bust .ic.hb { height: 100%; width: auto; max-width: none; aspect-ratio: 1; image-rendering: pixelated; }

/* list */
.hl-duty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hl-post { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 4px 6px; border-radius: 12px; background: linear-gradient(160deg, #2e3c5c, #1d2538); border: 2px solid #11161f; text-align: left; min-width: 0; }
.hl-post.empty { border-style: dashed; border-color: #4a5b80; }
.hl-post > .ic { width: 30px; height: 30px; }
.hl-post span { min-width: 0; } .hl-post b { display: block; font-size: 12.5px; color: #ffe7a8; }
.hl-post small { font-size: 11.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-bon { margin-top: 6px; padding: 0 4px; font-size: 13px; color: var(--ink2); }
.hl-bon summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.hl-bon .chips { margin: 3px 0 6px; } .hl-bon .chip { font-size: 12.5px; }
.hl-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 2px; }
.hl-sort { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 30px 0 12px; border-radius: 10px; background: var(--card2); border: 2px solid #11161f; font-size: 13px; color: var(--ink2); }
.hl-sort::after { content: ''; position: absolute; right: 11px; top: 50%; margin-top: -3px; border: 5px solid transparent; border-top-color: var(--gold); }
.hl-sort select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--ink); font: 800 14px var(--txt); min-height: 40px; padding: 0; cursor: pointer; }
.hl-sort select option { background: var(--bg2); }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hc { position: relative; display: block; aspect-ratio: 3 / 4; min-width: 0; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid #0d1119;
  background: radial-gradient(110% 80% at 50% 30%, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 2px 0 #0a0d14; }
.hc.r2 { box-shadow: inset 0 0 0 1px rgba(255,240,180,.6), 0 0 8px rgba(245,198,60,.35), 0 2px 0 #0a0d14; }
.hc-art { position: absolute; inset: 0; }
.hc-art:has(.bust)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(color-mix(in srgb, var(--s1) 55%, transparent), transparent 34%); mix-blend-mode: soft-light; }
.hc { border-color: var(--s2); } .hc.r2 { border-color: #e3a52a; }
.hc::after { content: ''; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(transparent, rgba(8,10,18,.92)); pointer-events: none; }
.hc.locked .hc-art { filter: brightness(.32) saturate(.4); }
.hc.locked { background: radial-gradient(110% 80% at 50% 30%, color-mix(in srgb, var(--s2) 60%, #222) 0%, #1a1f2c 100%); }
.hb-role { display: inline-grid; place-items: center; width: 22px; height: 25px; background: var(--rcol, #c0503f); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); flex: none; }
.hb-role .ic { width: 15px; height: 15px; margin-top: -3px; image-rendering: pixelated; }
.role-attack { --rcol: #d5513f; } .role-support { --rcol: #3fae66; } .role-speed { --rcol: #2f9fc7; } .role-defence { --rcol: #5a6f9e; } .role-economy { --rcol: #c9962a; }
.hc > .hb-role { position: absolute; top: 3px; left: 3px; z-index: 2; filter: drop-shadow(0 1px 0 #000); }
.hc-grade { position: absolute; top: 3px; right: 3px; z-index: 2; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font: 900 11px/1 var(--txt); color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--s1), var(--s2)); border: 1.5px solid rgba(255,255,255,.8); text-shadow: 0 1px 0 #000; }
.hc-post { position: absolute; top: 27px; left: 0; z-index: 2; font: 800 10px/15px var(--txt); font-style: normal; padding: 0 5px 0 4px; border-radius: 0 6px 6px 0; background: #1f7a40; color: #e9ffee; }
.hc-dot { top: 2px !important; right: 2px !important; z-index: 3; width: 10px !important; height: 10px !important; }
.hc-up { position: absolute; z-index: 3; right: 3px; bottom: 30px; width: 16px; height: 18px; background: #3fdc63; clip-path: polygon(50% 0, 100% 50%, 70% 50%, 70% 100%, 30% 100%, 30% 50%, 0 50%); filter: drop-shadow(0 1px 0 #0a3a17); }
.hc-foot { position: absolute; left: 0; right: 0; bottom: 3px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0 3px; }
.hc-foot b { font: 900 13px/1.1 var(--txt); color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.hc-nm { font-size: 10.5px !important; line-height: 1.1; color: #e8e2d0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hc-foot .hr-stars { font-size: 10.5px; gap: 0; } .hc-foot .hr-stars i { color: rgba(255,255,255,.28); }
.hc-foot .hr-stars i.on { color: #ffd84a; }
.hc-sh { display: inline-flex; align-items: center; gap: 2px; font: 800 11px var(--txt); color: #e9d6ff; } .hc-sh .ic { width: 13px; height: 13px; }
.hc-foot .bar { width: 86%; height: 6px; margin-top: 1px; }
.hl-foot { position: sticky; bottom: calc(-20px - var(--safe-b, 0px)); z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px -12px 0; padding: 10px 12px calc(10px + var(--safe-b, 0px));
  background: linear-gradient(rgba(18,24,38,0), var(--bg) 30%); }
.hl-big { position: relative; min-height: 56px; padding: 0 8px; justify-content: flex-start; gap: 6px; text-align: left; font: 800 14px/1.1 var(--txt); }
.hl-big small { display: block; font: 600 11.5px var(--txt); color: inherit; opacity: .85; margin-top: 2px; }
.hl-big .ic.lg { width: 30px; height: 30px; flex: none; }

/* detail */
.hdv { --pad: 12px; margin: -12px -12px 0; }
.hd-stage { position: relative; padding: 10px 12px 8px; overflow: hidden; background: radial-gradient(70% 55% at 50% 52%, var(--s1) 0%, var(--s2) 48%, var(--s3) 100%); border-bottom: 2px solid #0d1119; }
.hd-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 10% at 50% 80%, rgba(0,0,0,.4), transparent 70%), linear-gradient(rgba(10,12,22,.55), transparent 28%, transparent 70%, rgba(10,12,22,.65)); pointer-events: none; }
.hd-top { position: relative; z-index: 3; display: flex; align-items: flex-start; gap: 8px; }
.hd-back { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(0,0,0,.35); font: 900 26px/1 var(--txt); color: #fff; }
.hd-name { min-width: 0; } .hd-name h3 { font-size: 20px; line-height: 1.15; text-shadow: 0 2px 0 #000; }
.hd-name small { font-size: 12.5px !important; color: #f0e6cc !important; text-shadow: 0 1px 0 #000; }
.hd-tags { display: flex; align-items: center; gap: 5px; margin: 3px 0 2px; flex-wrap: wrap; }
.hd-rar { font: 800 11.5px/20px var(--txt); font-style: normal; padding: 0 8px; border-radius: 10px; color: #111; background: var(--rc); }
.hb-kind { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 3px; border-radius: 10px; background: rgba(0,0,0,.45); font: 700 11.5px var(--txt); color: #f3ecd9; }
.hb-kind .ic { width: 15px; height: 15px; }
.hd-arrow { position: absolute; z-index: 4; bottom: 14px; width: 48px; height: 48px; border-radius: 12px; background: rgba(0,0,0,.28); font: 900 30px/1 var(--txt); color: rgba(255,255,255,.9); }
.hd-arrow.l { left: 4px; } .hd-arrow.r { right: 4px; }
.hd-scene { position: relative; z-index: 2; height: 262px; margin: 2px 40px 0; touch-action: pan-y; user-select: none; }
.hd-glow { position: absolute; left: 50%; bottom: 8px; width: 190px; height: 34px; margin-left: -95px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.45), transparent 70%); }
.hd-scene .ha.big { position: absolute; left: 50%; bottom: 14px; width: 192px; height: 248px; margin-left: -96px; }
.hd-scene .ha.big.bust { width: 184px; height: 184px; margin-left: -92px; bottom: 34px; border-radius: 50%; border: 4px solid var(--rc); background: var(--s3);
  box-shadow: 0 0 0 3px rgba(0,0,0,.45), 0 0 32px color-mix(in srgb, var(--s1) 70%, transparent), inset 0 0 0 2px rgba(255,255,255,.25); }
.hd-scene .ha.big.bust .ic.hb { width: 100%; height: 100%; }
.hdv.locked .ha.big { filter: brightness(.3) saturate(.3); }
.ha.big.in { animation: haIn .35s ease-out both; }
@keyframes haIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.hdv.tab-skills .ha.big, .hdv.tab-gear .ha.big { transform: scale(.86); transform-origin: 50% 100%; }
.hdv.tab-skills .ha.big.bust { transform: scale(.72) translateY(16px); }
.hd-pow { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto; width: max-content; padding: 3px 14px; border-radius: 14px; background: rgba(0,0,0,.5); font: 700 13px var(--txt); }
.hd-pow b { font: 900 18px var(--txt); color: #ffe27a; }
.hd-stars { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.hd-stars .hr-stars { font-size: 22px; gap: 2px; } .hd-stars .hr-stars i { color: rgba(0,0,0,.4); }
.hd-sup { position: relative; } .hd-smax { font-weight: 800; }
.hd-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 12px 0; border-radius: 12px; background: var(--card); border: 2px solid #11161f; }
.hd-strip span { padding: 6px 4px; text-align: center; border-left: 1px solid var(--line); } .hd-strip span:first-child { border: 0; }
.hd-strip small { font-size: 11.5px !important; } .hd-strip b { font: 900 16px var(--txt); color: #ffe7a8; }
.hd-lvl { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; }
.hd-lvl .btn { min-height: 48px; } .hd-lvl .btn:first-child { flex: 1; } .hd-lvl small { display: inline-flex !important; align-items: center; gap: 3px; white-space: nowrap; }
.hd-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 12px 0; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.35); }
.hd-tabs button { position: relative; min-height: 44px; border-radius: 9px; font: 800 14px var(--txt); color: var(--ink2); }
.hd-tabs button.on { background: linear-gradient(#3b4b70, #2b3752); color: #ffe7a8; box-shadow: inset 0 -3px 0 var(--rc); }
.hd-pane { padding: 8px 12px 4px; }
.hd-card { display: flex; flex-direction: column; gap: 6px; }
.hd-card .chips .chip { font-size: 13px; }
.hd-rows { display: flex; flex-direction: column; }
.hd-r { display: flex; align-items: center; gap: 8px; min-height: 34px; border-bottom: 1px solid var(--line); font-size: 13px; }
.hd-r:last-child { border: 0; } .hd-r span { flex: 1; color: var(--ink2); } .hd-r b { font-weight: 800; white-space: nowrap; }
.hd-r.up b { color: var(--green); }
.hd-sig { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0; padding: 8px; border-radius: 10px; background: linear-gradient(90deg, rgba(245,198,60,.18), rgba(245,198,60,.04)); border: 1px solid rgba(245,198,60,.45); font-size: 13px; }
.hd-sig b { color: var(--gold); display: block; }
.hd-duty { margin-top: 8px; }
/* skills arc */
.hs-arc { position: absolute; left: 50%; top: 56%; width: 0; height: 0; z-index: 3; }
.hs-node { position: absolute; left: var(--x); top: var(--y); width: 58px; margin: -30px 0 0 -29px; display: flex; flex-direction: column; align-items: center; gap: 1px; background: none; }
.hs-node .ic.lg { width: 50px; height: 50px; padding: 6px; border-radius: 50%; background: radial-gradient(#33415f, #151b2a); border: 3px solid #c9d3e6; box-shadow: 0 2px 0 #000; image-rendering: pixelated; }
.hs-node.sig .ic.lg { border-color: var(--gold); box-shadow: 0 0 0 2px #7a4a10, 0 0 14px rgba(255,210,90,.85); border-radius: 14px; background: radial-gradient(#6b4a1a, #2a1a08); }
.hs-node.sig .ic.lg { padding: 8px; }
.hs-node.on .ic.lg { outline: 3px solid #fff; outline-offset: 2px; }
.hs-node b { font: 900 11.5px/16px var(--txt); padding: 0 6px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; }
.hs-node .hc-up { right: 0; top: 0; bottom: auto; }
.hs-info.sig { border-color: #a8801f; background: linear-gradient(160deg, #3a3020, var(--card)); }
.hs-h { display: flex; align-items: center; gap: 10px; } .hs-h b { font-size: 16px; } .hs-h .ic.lg { width: 40px; height: 40px; }
.hs-desc { margin: 0; font-size: 13.5px; color: var(--ink); text-align: left; }
.hs-lv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.hs-lv span { padding: 4px 2px; border-radius: 8px; text-align: center; background: rgba(0,0,0,.3); border: 1px solid transparent; }
.hs-lv span small { font-size: 10.5px !important; } .hs-lv span b { font-size: 12.5px; color: var(--ink2); }
.hs-lv span.done b { color: var(--ink); } .hs-lv span.on { border-color: var(--gold); background: rgba(245,198,60,.18); } .hs-lv span.on b { color: var(--gold); }
.hs-max { text-align: center; font-weight: 800; }
/* gear slots */
.hg-slot { position: absolute; z-index: 3; width: 64px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 12px;
  background: rgba(10,14,24,.72); border: 2px solid #6d7a96; box-shadow: 0 2px 0 #000; }
.hg-slot.s0 { left: -30px; top: 30px; } .hg-slot.s1 { left: -30px; top: 132px; } .hg-slot.s2 { right: -30px; top: 30px; } .hg-slot.s3 { right: -30px; top: 132px; }
.hg-slot .ic.lg { width: 38px; height: 38px; image-rendering: pixelated; } .hg-slot b { font: 900 12px/1 var(--txt); color: #fff; }
.hg-slot small { font-size: 10px !important; color: var(--ink2) !important; }
.hg-slot.empty { border-style: dashed; } .hg-plus { font: 900 28px/1 var(--txt); color: var(--ink2); }
.hg-slot .dot, .gl-tile .dot { top: -3px; right: -3px; }
.t0 { --tc: #8c97a8; } .t1 { --tc: #4fcf6e; } .t2 { --tc: #4fa3ff; } .t3 { --tc: #b36bff; } .t4 { --tc: #f5c63c; }
.hg-slot[class*=" t"] { border-color: var(--tc); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 45%, #10141f), #10141f 80%); }
.hd-gbtns { gap: 8px; } .hd-gbtns .btn { flex: 1; min-height: 46px; }
/* gear list / details / training popups */
.gl-sub { margin: 0 0 8px; font-size: 13px; color: var(--ink2); text-align: left; }
.gl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 52vh; overflow-y: auto; padding: 4px 2px; }
.gl-tile { position: relative; aspect-ratio: 1; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; border: 2px solid var(--tc);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 50%, #10141f), #10141f 85%); }
.gl-tile .ic.lg { width: 36px; height: 36px; image-rendering: pixelated; } .gl-tile b { font: 900 12px/1 var(--txt); color: #fff; text-shadow: 0 1px 0 #000; }
.gl-tile em { position: absolute; top: 2px; left: 2px; font: 800 9.5px/14px var(--txt); font-style: normal; padding: 0 4px; border-radius: 5px; background: #1f7a40; color: #fff; }
.gl-tile.on { box-shadow: 0 0 0 2px #fff inset; }
.gl-who { position: absolute; left: 1px; bottom: 1px; } .gl-tile .hc-up { right: 2px; bottom: auto; top: 2px; width: 13px; height: 15px; }
.gd-top { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 2px solid var(--tc); background: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--tc) 40%, #10141f), #151b2a 70%); margin-bottom: 6px; }
.gd-top > div { flex: 1; display: flex; flex-direction: column; gap: 4px; } .gd-top b { font-size: 16px; } .gd-top .ic.xl { width: 56px; height: 56px; image-rendering: pixelated; }
.gd-md .md-btns, .gl-md .md-btns, .tg-md .md-btns { flex-wrap: wrap; } .gd-md .md-btns .btn:first-child { flex-basis: 100%; }
.tg-list { display: flex; flex-direction: column; gap: 6px; max-height: 48vh; overflow-y: auto; }
.tg-row { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px; border-radius: 10px; background: var(--card); border: 2px solid transparent; text-align: left; }
.tg-row > span:not(.hr-por) { flex: 1; min-width: 0; } .tg-row b { font-size: 13.5px; } .tg-row small { display: block; font-size: 11.5px; color: var(--ink2); }
.tg-row em { font-style: normal; font-size: 12.5px; white-space: nowrap; } .tg-row em b { color: var(--green); }
.tg-chk { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); flex: none; }
.tg-row.on { border-color: rgba(79,207,110,.6); } .tg-row.on .tg-chk { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--card); }
.tg-sum { margin-top: 8px; font-size: 13px; text-align: center; color: var(--ink2); }
.pow-pop { position: fixed; z-index: 9999; left: 50%; top: 32%; transform: translateX(-50%); padding: 8px 18px; border-radius: 16px; background: rgba(10,14,24,.88); border: 2px solid var(--gold);
  font: 800 16px var(--txt); color: #fff; pointer-events: none; animation: powPop 1.5s ease-out both; }
.pow-pop b { color: #6ef08a; font-size: 20px; }
@keyframes powPop { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
.pow-pop.still { animation: none; }
@media (prefers-reduced-motion: reduce) { .ha.big.in, .pow-pop { animation: none !important; } }
@media (max-width: 380px) {
  .hl-grid { gap: 5px; } .hc-foot b { font-size: 12px; } .hc-nm { font-size: 10px !important; }
  .hd-scene { height: 236px; } .hd-scene .ha.big { width: 172px; height: 222px; margin-left: -86px; } .hd-scene .ha.big.bust { width: 160px; height: 160px; margin-left: -80px; }
  .hs-arc .hs-node { transform: scale(.92); }
  .hl-post { padding: 4px; gap: 4px; } .hl-post .hr-por.sm { width: 32px; height: 32px; } .hl-post .hr-por.sm .ic.hp { width: 26px; height: 26px; }
}

/* recruit */
.hr-mats { justify-content: center; margin-bottom: 6px; } .hr-mats .chip { font-size: 13px; }
.hr-ban { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hr-ban.normal { background: linear-gradient(160deg, #3a3326, #1f2232); border-color: #6b5a2a; }
.hr-ban.premium { background: linear-gradient(160deg, #3a2a5c, #1d1a33); border-color: #a8801f; box-shadow: inset 0 0 0 1px rgba(245,198,60,.25); }
.hr-ban-t { display: flex; gap: 10px; align-items: center; } .hr-ban-t h3 { color: #ffe7a8; }
.hr-pity { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; padding: 6px 8px; border-radius: 9px; background: rgba(0,0,0,.3); }
.hr-wish { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hr-wish-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; min-height: 64px; border-radius: 10px; background: rgba(0,0,0,.25); border: 2px solid transparent; }
.hr-wish-b.on { border-color: var(--gold); background: rgba(245,198,60,.15); }
.hr-wish-b small { font-size: 11.5px !important; }
.hr-note { text-align: center; font-size: 12.5px; margin: 12px 4px; }

/* pull reveal */
.hp-md { max-width: 520px; }
.hp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.hp-cards.n1 { grid-template-columns: minmax(140px, 180px); justify-content: center; }
.hp-card { perspective: 600px; }
.hp-in { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; background: var(--card); border: 2px solid var(--rc); text-align: center; min-height: 130px;
  animation: hpFlip .5s var(--d) both cubic-bezier(.2,.8,.3,1.2); }
.hp-in em { font: 700 12px var(--pix); font-style: normal; } .hp-in b { font-size: 12.5px; line-height: 1.15; } .hp-in small { font-size: 11.5px; color: var(--ink2); }
.hp-card.r2 .hp-in { background: linear-gradient(#5c4a2a, #2a2015); box-shadow: 0 0 16px rgba(245,198,60,.55); animation-name: hpFlip, hpGlow; animation-duration: .5s, 1.6s; animation-delay: var(--d), calc(var(--d) + .5s); animation-iteration-count: 1, infinite; }
.hp-card.r1 .hp-in { background: linear-gradient(#3d2e5c, #1d1a33); }
.hp-cards.n1 .hp-in { min-height: 170px; } .hp-cards.n1 .hr-por.pm { width: 92px; height: 92px; } .hp-cards.n1 .hr-por.pm .ic.hp { width: 84px; height: 84px; }
.hp-extra { justify-content: center; margin-top: 8px; }
@keyframes hpFlip { from { opacity: 0; transform: rotateY(90deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes hpGlow { 50% { box-shadow: 0 0 26px rgba(245,198,60,.9); } }
.hp-md.still .hp-in { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .hp-in, .hp-card.r2 .hp-in { animation: none !important; } }
@media (max-width: 380px) { .hp-cards { grid-template-columns: repeat(3, 1fr); } }
.heroes .ic.sm, .gl-md .ic.sm, .gd-md .ic.sm, .tg-md .ic.sm { width: 18px; height: 18px; }
/* polish A: gold filled stars on the detail stage, hero supplies rows, the Duty bonuses toggle, legible card names */
.hd-stars .hr-stars i.on { color: var(--gold); text-shadow: 0 1px 0 #000; }
.hr-list { padding: 4px 12px; }
.hr-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.hr-row:last-child { border-bottom: 0; } .hr-row .ic.lg { width: 36px; height: 36px; flex: none; }
.hr-row small { display: block; color: var(--ink2); font-size: 12.5px; } .hr-row .btn { flex: none; min-width: 76px; min-height: 40px; }
.hl-bon summary { min-height: 40px; list-style: none; gap: 6px; } .hl-bon summary::-webkit-details-marker { display: none; }
.hl-bon summary::before { content: '\25B8'; color: var(--gold); transition: transform .15s; } .hl-bon[open] summary::before { transform: rotate(90deg); }
.hc-nm { text-shadow: 0 1px 0 #000, 0 0 3px #000; font-weight: 800; }
/* Kingshot-style ascension: the star being filled is partly lit, 6 step pips under the stars */
.hr-stars i.part { background: linear-gradient(90deg, var(--gold) var(--f), rgba(255,255,255,.28) var(--f)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.hd-stw { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.hr-pips { display: inline-flex; gap: 3px; } .hr-pips i { width: 14px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.hr-pips i.on { background: linear-gradient(#ffe48a, #e0a526); box-shadow: 0 0 5px rgba(245,198,60,.7); }
.hr-btns .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; }
.hd-gen { margin-left: 6px; } .hd-gcount { flex-basis: 100%; text-align: center; font-size: 11px; color: rgba(255,255,255,.75); } /* general shards */
.hr-btns { gap: 6px; } .hr-btns .btn { padding: 0 6px; gap: 3px; font-size: 14px; } .hr-btns .btn .ic.sm { width: 18px; height: 18px; }
