 .cbp{min-width:0;padding:.85rem 1rem 1rem;border:1px solid #494664;border-radius:.85rem;background:linear-gradient(145deg,#24223a,#191c2e 65%);color:#f4efff;margin:0 0 1rem}
.cbp-head{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;margin-bottom:.65rem}
.cbp-head h2{margin:0;font-size:1rem}.cbp-head small{color:#c2b6d3;font-size:.72rem}.cbp-head a{margin-left:auto;font-size:.78rem}
.cbp-slots{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:.48rem}
.cbp-slot{display:grid;grid-template-rows:auto 2.5rem auto minmax(1.55rem,auto);align-items:center;justify-items:center;gap:.26rem;min-width:0;padding:.48rem .24rem .35rem;border:1px solid #3e4058;border-radius:.6rem;background:#181a2a;text-align:center}
.cbp-slot>small{color:#aaa9c1;font-size:.68rem}.cbp-slot>strong{font-size:.8rem;word-break:keep-all}
.cbp-medal{width:2.5rem;height:2.5rem;object-fit:contain;filter:drop-shadow(0 3px 4px #08091590)}
.cbp-awarded{border-color:#b59662;background:radial-gradient(ellipse at 50% 15%,#473746,#251f30 80%)}
.cbp-awarded>strong{color:#ffe4ac}.cbp-holders{display:grid;justify-items:center;min-width:0}
.cbp-holders .clan-rank-badge{gap:.32rem;font-size:.76rem}.cbp-holders .ci-mark{max-width:1.3rem;max-height:1.3rem}
.cbp-home .cbp-slot{grid-template-rows:auto 2rem auto minmax(1.4rem,auto)}.cbp-home .cbp-medal{width:2rem;height:2rem}
.cbp-clan{margin-block:1rem}.cbp-collection{display:grid;grid-template-columns:repeat(auto-fit, minmax(6rem,8rem));gap:.5rem}
@media(max-width:760px){.cbp-slots{grid-template-columns:repeat(4,minmax(0,1fr))}}
.cbp-ranking{flex:0 0 100%;grid-column:1/-1;width:100%;box-sizing:border-box;margin:0}
#view-clans .page-heading:has(>.cbp-ranking){flex-wrap:wrap}
.clan-site-welcome:has(>.cbp-clan){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);column-gap:1.25rem}
.clan-site-welcome:has(>.cbp-clan)>:not(.cbp-clan){grid-column:1}
.clan-site-welcome>.cbp-clan{grid-column:2;grid-row:1/span 3;align-self:center;margin:0}
@media(max-width:760px){.clan-site-welcome:has(>.cbp-clan){display:block}.clan-site-welcome>.cbp-clan{margin-top:1rem}}
@media(min-width:761px){.cbp-slots{grid-template-columns:repeat(7,minmax(0,1fr))}}
.cbp-rules h2{margin:0 0 .7rem;font-size:1rem}.cbp-rules ul{margin:0;padding-inline-start:1.25rem;line-height:1.7;color:#ddd5ef}.cbp-rules li+li{margin-top:.25rem}
.cbp-slot>button{font-size:.7rem;padding:.25rem .35rem;border:1px solid #665587;border-radius:.35rem;background:#2c2544;color:#eee4ff;cursor:pointer}.cbp-slot>button:disabled{opacity:.55;cursor:default}
dialog.cbp-report{width:min(42rem,calc(100% - 1.5rem));max-height:85dvh;overflow:auto;margin:auto;padding:1.1rem 1.25rem}
.cbp-report::backdrop{background:#090a15b5}.cbp-report header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.cbp-report h2{margin:0}.cbp-report h3{font-size:1rem;margin:1.2rem 0 .5rem}.cbp-report p,.cbp-report small{color:#c9bfdc}
.cbp-report-rows,.cbp-duels{display:grid;gap:.5rem}.cbp-report-rows>div,.cbp-duels>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem;padding:.55rem .7rem;background:#161829;border-radius:.45rem}.cbp-report progress,.cbp-report small,.cbp-duel-bar{grid-column:1/-1}.cbp-report progress{width:100%;height:.5rem;accent-color:#bda0ff}.cbp-duel-bar{height:.45rem;border-radius:1rem;background:linear-gradient(90deg,#a786ef var(--share),#65c5df var(--share))}
dialog.cbp-report{width:min(49rem,calc(100% - 1.5rem));box-sizing:border-box;padding:clamp(.8rem,3vw,1.5rem)}
.cbp-report-title{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:1rem;padding:.65rem 0;border-bottom:1px solid #494261}
.cbp-report-title h2{font-size:clamp(1.45rem,4vw,2rem);word-break:keep-all}.cbp-report-title p,.cbp-result p{margin:.3rem 0;font-size:.8rem}.cbp-report-title button{white-space:nowrap}
.cbp-report-rows{gap:.75rem}.cbp-result{min-width:0;border:1px solid #3b3b56;border-radius:.7rem;background:#191b30;padding:.75rem .9rem}.cbp-result:first-child{border-color:#9a7e51;background:linear-gradient(115deg,#302736,#1b1d31 65%)}
.cbp-result-head,.cbp-report-person{display:flex;align-items:center;gap:.55rem;min-width:0}.cbp-result-head>strong{margin-left:auto;white-space:nowrap;color:#f0d9ff}.cbp-place{white-space:nowrap;color:#e4c985;font-weight:800}.cbp-result-head .ci-mark{width:2rem;height:2rem;flex:none}.cbp-result-head .clan-rank-badge{min-width:0;font-size:1rem}.cbp-result progress{display:block;margin:.65rem 0}
.cbp-result-stat{display:grid;grid-template-columns:3.4rem minmax(0,1fr);align-items:center;min-height:2rem;border-top:1px solid #39354e;margin-top:.35rem;padding-top:.2rem}.cbp-result-stat>span{color:#c6afea;font-size:.8rem}.cbp-report-person{flex-wrap:wrap}.cbp-report-person>b{white-space:nowrap;color:#f1d7a0;font-size:.83rem}.cbp-report-person .clan-rank-badge{display:none}

.cbp-slot:has(.cbp-set-status){grid-template-rows:auto auto auto auto minmax(1.5rem,auto) auto}
.cbp-set-status{font-size:.68rem;font-weight:700;border-radius:1rem;padding:.1rem .42rem;background:#25283b;color:#b7b5cd;white-space:nowrap}
.cbp-awarded .cbp-set-status{color:#ffe3a5;background:#493720}
.cbp-set-active{border-color:#65c9b4;background:radial-gradient(ellipse at 50% 0,#23423e,#191e30 80%)}
.cbp-set-active .cbp-set-status{color:#b7ffe5;background:#214a43}
.cbp-set-active .cbp-set-status::before{content:'';display:inline-block;width:.35rem;height:.35rem;margin-right:.28rem;vertical-align:.09em;border-radius:50%;background:#86e8c8}

.cbp-set-future{border-style:dashed;border-color:#4d4d68;background:#191c2b}
.cbp-set-future .cbp-medal{opacity:.66;filter:saturate(.42)}
.cbp-set-future>strong{color:#c2bfd2}


.cbp-slot[data-badge-color="boulder"]{--badge-light:205 211 224}
.cbp-slot[data-badge-color="cascade"]{--badge-light:102 205 255}
.cbp-slot[data-badge-color="thunder"]{--badge-light:255 179 89}
.cbp-slot[data-badge-color="rainbow"]{--badge-light:159 234 133}
.cbp-slot[data-badge-color="soul"]{--badge-light:255 148 211}
.cbp-slot[data-badge-color="marsh"]{--badge-light:255 215 104}
.cbp-slot[data-badge-color="volcano"]{--badge-light:255 109 118}
.cbp-set-active{border-color:rgb(var(--badge-light));background:radial-gradient(ellipse at 50% 0,rgb(var(--badge-light) / .27),#191e30 85%),#191e30;box-shadow:0 0 .65rem rgb(var(--badge-light) / .4),inset 0 0 .9rem rgb(var(--badge-light) / .16)}
.cbp-set-active .cbp-medal{filter:drop-shadow(0 0 .38rem rgb(var(--badge-light) / .65))}
.cbp-set-active .cbp-set-status{background:rgb(var(--badge-light) / .20);color:rgb(var(--badge-light))}
.cbp-set-active .cbp-set-status::before{background:currentColor}

.cbp-awarded[data-badge-color]{border-color:rgb(var(--badge-light) / .65);background:radial-gradient(ellipse at 50% 0,rgb(var(--badge-light) / .14),#1b1d2e 85%),#1b1d2e}
.cbp-awarded[data-badge-color]>strong{color:rgb(var(--badge-light))}
.cbp-awarded[data-badge-color] .cbp-medal{filter:drop-shadow(0 0 .28rem rgb(var(--badge-light) / .36))}
.cbp-awarded[data-badge-color] .cbp-set-status{color:rgb(var(--badge-light));background:rgb(var(--badge-light) / .14)}

.cbp-awarded[data-badge-color]{border-color:rgb(var(--badge-light));background:radial-gradient(ellipse at 50% 0,rgb(var(--badge-light) / .27),#191e30 85%),#191e30;box-shadow:0 0 .65rem rgb(var(--badge-light) / .4),inset 0 0 .9rem rgb(var(--badge-light) / .16)}
.cbp-awarded[data-badge-color] .cbp-medal{filter:drop-shadow(0 0 .38rem rgb(var(--badge-light) / .65))}
.cbp-awarded[data-badge-color] .cbp-set-status{background:rgb(var(--badge-light) / .23)}
.cbp-awarded .cbp-holders{width:100%;gap:.25rem}
.cbp-awarded .cbp-holders .clan-rank-badge{box-sizing:border-box;justify-content:center;max-width:100%;padding:.18rem .34rem;border:1px solid rgb(var(--badge-light) / .36);border-radius:.4rem;background:#111425;font-size:.8rem;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.cbp-awarded .cbp-holders .clan-rank-badge img{flex:none}

.cbp-winner-line{display:flex;align-items:center;justify-content:center;gap:.32rem;max-width:100%;padding:.18rem .3rem;border-radius:.4rem;background:#111425;border:1px solid rgb(var(--badge-light) / .36)}
.cbp-winner-line>strong{white-space:nowrap;color:rgb(var(--badge-light));font-size:.72rem}
.cbp-awarded .cbp-winner-line .clan-rank-badge{padding:0;border:0;background:none}
.cbp-slots .cbp-awarded{grid-template-rows:auto auto auto minmax(1.5rem,auto) auto}

.cbp-awarded{position:relative;isolation:isolate;overflow:hidden}
.cbp-slots .cbp-awarded,.cbp-collection .cbp-awarded{grid-template-rows:auto 1fr auto auto;align-content:center}
.cbp-awarded .cbp-holders{position:absolute;inset:0;z-index:-1;display:flex;width:auto;gap:0}
.cbp-winner-watermark{display:grid;place-items:center;flex:1;min-width:0;overflow:hidden;opacity:.27;transition:opacity .18s ease}
.cbp-winner-watermark:hover,.cbp-winner-watermark:focus-visible{opacity:.43}
.cbp-winner-watermark .clan-mark{width:100%;height:auto;aspect-ratio:1;max-width:none;max-height:none}
.cbp-awarded>small,.cbp-awarded>strong{pointer-events:none;text-shadow:0 1px 5px #090b16,0 1px 3px #090b16}

.cbp-slots .cbp-slot{grid-template-rows:auto auto minmax(3.65rem,1fr) auto;min-height:8.1rem}
.cbp-slots .cbp-awarded{grid-template-rows:auto minmax(4.5rem,1fr) auto}
.cbp-slots .cbp-holders:empty{display:none}
.cbp-collection .cbp-awarded{grid-template-rows:auto minmax(4.5rem,1fr)}
.cbp-badge-art{align-self:center;display:grid;justify-items:center;gap:.23rem;text-align:center;pointer-events:none}
.cbp-badge-art>strong{font-size:.8rem;word-break:keep-all;text-shadow:0 1px 4px #090b16}
.cbp-badge-art .cbp-medal{width:2.85rem;height:2.85rem}
.cbp-home .cbp-badge-art .cbp-medal{width:2.35rem;height:2.35rem}
.cbp-awarded .cbp-badge-art>strong{color:rgb(var(--badge-light))}
.cbp-set-future .cbp-badge-art>strong{color:#c2bfd2}

.cbp-set-column{display:grid;grid-template-rows:1fr auto;gap:.24rem;min-width:0}
.cbp-set-column .cbp-slot{min-height:8.65rem;grid-template-rows:auto auto minmax(3.65rem,1fr)}
.cbp-set-column .cbp-awarded{grid-template-rows:auto minmax(4.5rem,1fr)}
.cbp-set-column>button{min-width:0;padding:.3rem .15rem;border:1px solid #665587;border-radius:.4rem;background:#2c2544;color:#eee4ff;font-size:.7rem;cursor:pointer}
.cbp-set-column>button:disabled{opacity:.55;cursor:default}
