/* Comp guide panel (tier list). Opens over the page when a comp is clicked. */
body.cp-open{overflow:hidden}
.cp{--k1:#9aa0b0;--k2:#5ad0a0;--k3:#5aa9ff;--k4:#b48cff;--k5:#f2d04f;--k7:#ff7ad9;position:fixed;inset:0;z-index:80;display:flex;justify-content:center;align-items:stretch;font-family:Inter,system-ui,sans-serif;color:#f3f1ff}
.cp[hidden]{display:none}
.cp-back{position:absolute;inset:0;background:rgba(6,4,24,.78);backdrop-filter:blur(4px)}
.cp-win{position:relative;width:min(1100px,100%);margin:20px 12px;overflow:auto;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:#0f0b2e;box-shadow:0 30px 80px -20px #000;padding:14px}
.cp-top{display:flex;align-items:center;gap:14px;margin-bottom:12px;padding:10px 14px;border-radius:14px;border:2px solid var(--t);background:linear-gradient(90deg,rgba(255,255,255,.04),transparent)}
.cp-tier{display:grid;place-items:center;width:54px;height:54px;border-radius:10px;background:linear-gradient(160deg,var(--t),var(--t2));color:#120c3a;line-height:1}
.cp-tier b{font:900 26px Unbounded,Inter,sans-serif}.cp-tier small{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.cp-title{flex:1;font:800 20px Unbounded,Inter,sans-serif}
.cp-x{border:0;border-radius:999px;width:36px;height:36px;background:rgba(255,255,255,.1);color:#fff;font-size:16px;cursor:pointer}
.cp-x:hover{background:rgba(255,255,255,.2)}
.cp-main{display:grid;grid-template-columns:230px 1fr;gap:12px;align-items:start}
.cp-card{border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.04);padding:12px 14px}
.cp-card h3{margin:0 0 10px;text-align:center;font-size:13px;font-weight:800}
.cp-card p{margin:0;font-size:14px;line-height:1.5;color:#dcd8f5;text-align:center}
.cp-side{text-align:center;border-color:var(--t);background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02))}
.cp-side h2{margin:10px 0 2px;font:800 18px Unbounded,Inter,sans-serif;text-transform:uppercase}
.cp-play{font-size:11px!important;font-weight:800;color:var(--t)!important;letter-spacing:.04em;margin-bottom:12px!important}
.cp-body{display:grid;gap:12px;min-width:0}
.cp-row3{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:12px}
.cp-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.cp-muted{font-size:12px;color:#a9a5cc}
.cp-soon{padding:30px}

/* champion hexagons */
.cu{--cc:var(--k1);position:relative;display:inline-block;width:52px;height:58px;margin:0 3px 4px;vertical-align:top}
.cu.cost1{--cc:var(--k1)}.cu.cost2{--cc:var(--k2)}.cu.cost3{--cc:var(--k3)}.cu.cost4{--cc:var(--k4)}.cu.cost5{--cc:var(--k5)}.cu.cost7{--cc:var(--k7)}
.cu-hex,.cp-carry .cu-hex{position:absolute;inset:0;background:var(--cc);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.cu-hex::after{content:"";position:absolute;inset:3px;background:#1a1840;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.cu-hex img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:cover;object-position:50% 25%;z-index:1;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.cu-star{position:absolute;left:0;right:0;top:-9px;text-align:center;font-size:11px;line-height:1;color:#ffd36a;text-shadow:0 1px 2px #000;z-index:2}
.cu-items{position:absolute;left:50%;bottom:4px;transform:translateX(-50%);display:flex;gap:0;z-index:2;filter:drop-shadow(0 1px 2px #000)}
.cu-items img{width:16px;height:16px;border-radius:3px;border:1px solid rgba(255,255,255,.55);background:#120e36;display:block}
.cp-carry{--cc:var(--k2);position:relative;display:block;width:124px;height:140px;margin:6px auto 0}
.cp-carry.cost1{--cc:var(--k1)}.cp-carry.cost2{--cc:var(--k2)}.cp-carry.cost3{--cc:var(--k3)}.cp-carry.cost4{--cc:var(--k4)}.cp-carry.cost5{--cc:var(--k5)}
.cp-units{display:flex;flex-wrap:wrap;justify-content:center;padding-top:8px}
.cp-final .cp-units{padding-top:10px}
.cp-prio{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
.cp-prio img{width:38px;height:38px;border-radius:7px;border:1px solid rgba(255,255,255,.25)}
.cp-arrow{font-size:20px;color:#a9a5cc}

/* traits */
.cp-traits{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.ctr{display:inline-flex;align-items:center;gap:4px;padding:2px 8px 2px 2px;border-radius:10px;background:rgba(255,255,255,.06);font-size:12px}
.ctr b{font-weight:800}.ctr-n{display:none}
.ctr-hex{display:grid;place-items:center;width:26px;height:29px;background:var(--f,#8a4a26);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.ctr.bronze{--f:linear-gradient(160deg,#d98a57,#8a4a26)}.ctr.silver{--f:linear-gradient(160deg,#e3e8f2,#9aa4b8)}.ctr.gold{--f:linear-gradient(160deg,#ffd36a,#f59f1a)}
.ctr-g{width:15px;height:15px;background:#1a1130;-webkit-mask:var(--g) center/contain no-repeat;mask:var(--g) center/contain no-repeat}

/* positioning grid (the main attraction: big hexes, big items) */
.cp-pos h3{font-size:16px;margin-bottom:14px}
.cg{width:fit-content;margin:6px auto 18px;padding-bottom:4px}
.cg-row{position:relative;display:flex;gap:4px}
.cg-row+.cg-row{margin-top:-22px}
.cg-row.odd{margin-left:50px}
.cg-row:not(.odd){margin-right:50px}
.cg-cell{width:96px;height:108px;display:grid;place-items:center;flex:none}
.cg-cell .cu{margin:0;width:88px;height:98px}
.cg-cell .cu-hex::after{inset:4px}
.cg-cell .cu-hex img{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px)}
.cg-cell .cu-star{top:-14px;font-size:16px}
.cg-cell .cu-items{bottom:12px}
.cg-cell .cu-items img{width:25px;height:25px;border-radius:5px;border-width:1.5px}
.cg-cell.empty i{display:block;width:88px;height:98px;background:rgba(255,255,255,.07);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.cp-btn{display:block;width:fit-content;margin:0 auto;padding:9px 22px;border-radius:999px;background:linear-gradient(90deg,#ff3fa4,#7b6bff);color:#fff;font-weight:800;font-size:14px;text-decoration:none}
.cp-btn:hover{filter:brightness(1.1)}

@media (max-width:860px){
  /* the board scales with the screen so all 7 columns always fit inside the card */
  .cg{--cw:min(44px,calc((100vw - 84px)/7.6))}
  .cg-cell{width:var(--cw);height:calc(var(--cw)*1.14)}.cg-cell .cu,.cg-cell.empty i{width:calc(var(--cw)*.9);height:calc(var(--cw)*1.02)}
  .cg-row+.cg-row{margin-top:calc(var(--cw)*-.22)}.cg-row.odd{margin-left:calc(var(--cw)/2)}.cg-row:not(.odd){margin-right:calc(var(--cw)/2)}
  .cg-cell .cu-items{bottom:3px}.cg-cell .cu-items img{width:13px;height:13px;border-radius:3px;border-width:1px}.cg-cell .cu-star{font-size:10px;top:-8px}
  .cp-main{grid-template-columns:1fr}
  .cp-row3,.cp-stages{grid-template-columns:1fr}
  .cp-win{margin:0;border-radius:0}
  .cp-carry{width:96px;height:108px}
}



/* ---- polish: star plate, straddling item row, glow on 3-stars ---- */
.cu-star{top:-9px!important;left:50%!important;right:auto!important;transform:translateX(-50%);width:max-content;padding:1px 6px 0;border-radius:5px;background:linear-gradient(180deg,#ffd45a,#f5a300);color:#4a2f00;text-shadow:none;font-size:10px;letter-spacing:1px;font-weight:900;box-shadow:0 1px 3px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.35)}
.cg-cell .cu-star{top:-12px!important;font-size:14px;padding:1px 9px 0;border-radius:6px}
.cu.s3 .cu-hex{filter:drop-shadow(0 0 5px rgba(255,200,60,.85))}
.cu-items{bottom:-7px!important;gap:2px!important;filter:drop-shadow(0 2px 3px rgba(0,0,0,.8))}
.cu-items img{border:2px solid #0d0a30!important;box-shadow:0 0 0 1px rgba(255,255,255,.4);border-radius:6px!important}
.cu-items img{width:19px!important;height:19px!important}
.cg-cell .cu-items{bottom:-10px!important}
.cg-cell .cu-items img{width:31px!important;height:31px!important;border-radius:8px!important}
.cp-units .cu{margin-bottom:12px}
@media (max-width:860px){.cg-cell .cu-items{bottom:-5px!important}.cg-cell .cu-items img{width:15px!important;height:15px!important;border-width:1px!important}.cg-cell .cu-star{font-size:9px;top:-8px!important}}

/* header buttons: copy + close */
.cp-copy,.cp-x{height:34px;border:0;border-radius:999px;cursor:pointer;display:grid;place-items:center;font-weight:800}
.cp-copy{width:64px;background:#1a1745;color:#ffc21a;box-shadow:inset 0 0 0 2px rgba(255,255,255,.2)}
.cp-copy:hover{background:#25215c}
.cp-copy.ok{background:#1fcf7a;color:#06281a}
.cp-copy.fail{background:#e24b6a;color:#fff}
.cp-x{width:64px;background:#ffc21a;color:#2b1c00;font-size:16px}
.cp-x:hover{background:#ffd04d}
