/* Champion hover card. Shared by the tier list and the Builder. */
.ctip{position:fixed;z-index:60;width:312px;max-width:calc(100vw - 16px);padding:14px 16px 16px;border:2px solid #8b5cf6;border-radius:14px;background:#120e36;color:#f3f1ff;font:14px/1.45 Inter,system-ui,sans-serif;box-shadow:0 18px 50px -10px rgba(0,0,0,.7),0 0 0 1px rgba(139,92,246,.25);opacity:0;transform:scale(.75,.5625);pointer-events:none;transition:opacity .2s cubic-bezier(.4,0,.2,1),transform .133s cubic-bezier(.4,0,.2,1)}
.ctip.show{opacity:1;transform:none}
.ctip[hidden]{display:none}

.ctip-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.ctip-name{font:800 19px/1.2 Inter,system-ui,sans-serif}
.ctip-role{flex:none;padding:3px 10px;border-radius:8px;background:rgba(255,255,255,.12);color:#cfcbe8;font-size:12px;font-weight:600;white-space:nowrap}

.ctip-meta{display:flex;justify-content:space-between;gap:10px;margin:8px 0 10px}
.ctip-traits{display:grid;gap:3px}
.ctip-trait{display:flex;align-items:center;gap:8px;font-weight:600}
.ctip-trait .glyph{width:20px;height:20px;background:#fff;-webkit-mask:var(--g) center/contain no-repeat;mask:var(--g) center/contain no-repeat;flex:none}
.ctip-cost{display:flex;align-items:center;gap:6px;font-weight:800;font-size:15px;align-self:flex-start}
.ctip-coin{width:15px;height:15px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe083,#e0a200);box-shadow:0 0 0 1.5px #7a5600 inset}

.ctip-rule{height:1.5px;margin:0 0 10px;background:linear-gradient(90deg,#8b5cf6,rgba(139,92,246,.35))}

.ctip-abil{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ctip-abil img{width:44px;height:44px;border-radius:9px;border:1.5px solid rgba(255,255,255,.25);background:#1a1544;flex:none}
.ctip-aname{font:700 16px/1.2 Inter,system-ui,sans-serif}
.ctip-mana{display:flex;align-items:center;gap:5px;margin-top:2px;color:#9fd2ff;font-size:13px;font-weight:600}
.ctip-drop{width:9px;height:13px;border-radius:50% 50% 50% 50% / 62% 62% 38% 38%;background:linear-gradient(180deg,#78c8ff,#2a7de1);transform:rotate(0)}

.ctip-desc{color:#e9e6fb;font-size:13.5px;line-height:1.5}
.ctip-desc img{display:inline-block;width:14px;height:14px;vertical-align:-2px;margin:0 1px}
.ctip-desc b{font-weight:700}

/* Trait card */
.ctip-trait-card{width:300px;padding:14px 16px 14px}
.ctip-thead{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.ctip-thead .glyph{width:34px;height:34px;background:#fff;-webkit-mask:var(--g) center/contain no-repeat;mask:var(--g) center/contain no-repeat;flex:none}
.ctip-thead .ctip-name{font-size:21px}
.ctip-tdesc{display:grid;gap:3px;color:#d4d0ee}
.ctip-line.lvl{color:#8f8bb0}
.ctip-line.lvl.on{color:#fff;font-weight:600}
.ctip-champs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ctip-face{width:38px;height:38px;border:2px solid #9aa0b0;border-radius:8px;overflow:hidden;background:#1a1544}
.ctip-face img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.ctip-face.dim{opacity:.38;filter:grayscale(.6)}
.ctip-hint{margin-top:10px;padding-top:8px;border-top:1px solid rgba(139,92,246,.35);color:#8f8bb0;font-size:12px}

@media (hover:none){.ctip{display:none}}
@media (prefers-reduced-motion:reduce){.ctip{transition:none}}




.ctip-thead .ctip-recipe{margin-left:auto;display:flex;align-items:center;gap:4px;padding-left:12px}
.ctip-recipe img{width:26px;height:26px;border-radius:5px;display:block}
.ctip-plus{opacity:.7;font-weight:700}
.ctip-stats{display:flex;flex-wrap:wrap;gap:4px 10px;margin-bottom:6px;font-weight:700;color:#f0c000}
.ctip-stat{display:inline-flex;align-items:center;gap:3px}
.ctip-stat img{width:15px;height:15px;display:block}

.ctip-item{width:340px}
.ctip-item .ctip-thead .ctip-role{display:none}
.ctip-item .ctip-name small{display:block;font-size:12px;font-weight:600;color:#cfcbe8;margin-top:2px}

