/* BloxChase V63.77.26 — unobtrusive, consistent site polish */
.bc-notif-icon{--nv:#9b95ff;--nb:rgba(115,103,240,.11);color:var(--nv)!important;background:var(--nb)!important;border:1px solid color-mix(in srgb,var(--nv) 16%,transparent)!important}
.bc-notif-tone-violet{--nv:#aaa0ff;--nb:rgba(116,101,242,.1)}
.bc-notif-tone-mint{--nv:#64dca9;--nb:rgba(48,190,131,.085)}
.bc-notif-tone-amber{--nv:#e7c37a;--nb:rgba(235,186,76,.075)}
.bc-notif-tone-rose{--nv:#ef9eaa;--nb:rgba(218,93,112,.075)}
.bc-notif-tone-sky{--nv:#88b8e9;--nb:rgba(82,143,215,.08)}
.bc-notif-tone-slate{--nv:#a0adc4;--nb:rgba(100,116,139,.085)}
.bc-notification-row{transition:background-color .14s ease!important}
.bc-recaptcha-box{width:100%!important;max-width:100%!important;margin:15px 0!important;padding:4px 0 0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;min-height:0!important}
.bc-recaptcha-head{display:none!important}
.bc-recaptcha-frame{height:80px!important;overflow:visible!important;max-width:100%;min-width:0}
.bc-recaptcha-scale{max-width:304px}
.bc-recaptcha-status{font-size:9px!important;min-height:17px}
@media(max-width:355px){.bc-recaptcha-scale{transform:translateX(-50%) scale(.91)!important}}
/* Badge collection aligns with dashboard preview; all icon badges share rarity language. */
.profile-badge-icon{--badge-tone:var(--badge,#9b8cff);width:43px!important;height:43px!important;border-radius:12px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 30% 12%,color-mix(in srgb,var(--badge-tone) 18%,transparent),transparent 66%),#15253d!important;border:1px solid color-mix(in srgb,var(--badge-tone) 46%,#273955)!important;box-shadow:0 0 12px color-mix(in srgb,var(--badge-tone) 10%,transparent)!important;cursor:help;transition:transform .15s ease,border-color .15s ease!important}
.profile-badge-icon i{font-size:17px!important;color:#e8effb!important}
.profile-badge-icon img{width:28px;height:28px;object-fit:contain;display:block;filter:drop-shadow(0 0 4px rgba(147,149,238,.2))}.ap3-badge img{width:27px;height:27px;object-fit:contain;display:block;filter:drop-shadow(0 0 4px rgba(147,149,238,.2))}
.profile-badge-icon:hover,.profile-badge-icon:focus-visible{transform:translateY(-2px);outline:2px solid var(--badge-tone);outline-offset:2px}
.profile-badge[data-tone="green"]{--badge-tone:#55d9a5}
.profile-badge[data-tone="gold"]{--badge-tone:#ebc37a}
.profile-badge[data-tone="rose"]{--badge-tone:#efa1b4}
.profile-badge[data-tone="cyan"]{--badge-tone:#77c9dd}
.profile-badge[data-tone="blue"]{--badge-tone:#78a9e6}
.profile-badge[data-tone="purple"]{--badge-tone:#be9eff}
.profile-badge[data-tone="indigo"]{--badge-tone:#9b9aef}
.profile-badge[data-tone="orange"]{--badge-tone:#e6b683}
.bc-offer-pages{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;padding:17px 7px 8px;border-top:1px solid rgba(255,255,255,.06)}
.bc-offer-pages a{min-width:30px;height:30px;padding:0 8px;display:grid;place-items:center;font:750 11px Poppins,system-ui,sans-serif;color:#99aac5;border:1px solid rgba(255,255,255,.08);background:#12233a;border-radius:9px;text-decoration:none}
.bc-offer-pages a.current{background:#655cf0;border-color:#8477fb;color:#fff}.bc-offer-pages a:hover{border-color:#8175f8;color:#fff}
.bc-offer-pages-count{font-size:10px;color:#7a8ca6;margin-left:5px}
.bc-offer-reward{display:inline-flex;align-items:center;gap:5px;color:#75e6a9;font-weight:800;white-space:nowrap}.bc-offer-reward img{width:15px;height:15px;object-fit:contain;display:inline-block;vertical-align:middle}
/* No script-owned field placeholder can swallow the chat input click. */
#chatForm:has(#chatInput:not(:disabled)){cursor:text}#chatForm button{cursor:pointer}
/* History search/filter, with horizontal fallback on narrow devices. */
.bc-history-tools{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:13px;align-items:center}.bc-history-tools input,.bc-history-tools select{flex:1 1 150px;min-width:0;max-width:350px;height:39px;border-radius:10px;background:#13243b;border:1px solid rgba(157,177,215,.13);padding:0 13px;color:#dce6f4;outline:0;font:550 11px Poppins,system-ui,sans-serif}
.bc-history-tools input:focus,.bc-history-tools select:focus{border-color:#8a7dfb;box-shadow:0 0 0 3px rgba(117,105,255,.09)}
.bc-history-tools .bc-history-count{font-size:10px;color:#8395ae;margin-left:auto}
.bc-history-table tbody tr{transition:background .14s ease}.bc-history-table tbody tr:hover{background:rgba(139,124,246,.033)}
.bc-history-footnote{font-size:10px;color:#8191a8;margin-top:13px;text-align:right}
@media(max-width:640px){.bc-history-tools{gap:7px}.bc-history-tools input,.bc-history-tools select{flex:1 1 calc(50% - 8px)}.profile-badge-icon{width:40px!important;height:40px!important}}
@media(hover:none),(pointer:coarse){.profile-badge-icon{cursor:default}#bcBadgeTooltip{display:block!important}}
@media(prefers-reduced-motion:reduce){.profile-badge-icon,.bc-notification-row{transition:none!important}}

/* V63.77.27 — compact badge grid, real rarity palettes, earned first.
   Uses existing Font Awesome icons; does not touch achievements or earnings. */
.bc-profile-v28 .profile-badges{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  align-items:stretch;
}
.bc-profile-v28 .profile-badges .profile-badge{
  min-width:0;
  min-height:147px;
  padding:12px;
  border-radius:13px;
  overflow:hidden;
  order:1; /* Progressive fallback; JS aligns DOM and keyboard order. */
  border-color:color-mix(in srgb,var(--badge) 28%,rgba(255,255,255,.055));
  background:radial-gradient(185px 95px at 0 0,color-mix(in srgb,var(--badge) 9%,transparent),transparent 72%),rgba(255,255,255,.013);
}
.bc-profile-v28 .profile-badges .profile-badge.unlocked{order:0}
.bc-profile-v28 .profile-badges .profile-badge.locked{
  opacity:1 !important;
  filter:none !important;
  background:radial-gradient(180px 90px at 0 0,color-mix(in srgb,var(--badge) 5%,transparent),transparent 73%),rgba(255,255,255,.008);
  border-color:color-mix(in srgb,var(--badge) 17%,rgba(255,255,255,.04));
}
.bc-profile-v28 .profile-badges .profile-badge.locked:hover{
  opacity:1 !important;
  border-color:color-mix(in srgb,var(--badge) 30%,rgba(255,255,255,.07));
}
.bc-profile-v28 .profile-badges .profile-badge.unlocked{
  border-color:color-mix(in srgb,var(--badge) 32%,rgba(255,255,255,.06));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.bc-profile-v28 .profile-badge .profile-badge-top{gap:6px}
.bc-profile-v28 .profile-badge .profile-badge-icon{
  width:39px !important;
  height:39px !important;
  border-radius:11px !important;
  background:radial-gradient(circle at 30% 12%,color-mix(in srgb,var(--badge) 17%,transparent),transparent 66%),#15253d !important;
  border-color:color-mix(in srgb,var(--badge) 55%,#263751) !important;
  box-shadow:0 0 13px color-mix(in srgb,var(--badge) 13%,transparent) !important;
}
.bc-profile-v28 .profile-badge .profile-badge-icon i{
  color:#edf3fc !important;font-size:15px !important;
  filter:drop-shadow(0 0 6px color-mix(in srgb,var(--badge) 27%,transparent));
}
.bc-profile-v28 .profile-badge.locked .profile-badge-icon{opacity:.82}
.bc-profile-v28 .profile-badge .profile-badge-rarity{
  height:21px;padding:0 6px;border-radius:6px;
  color:var(--badge);border-color:color-mix(in srgb,var(--badge) 31%,transparent);
  background:color-mix(in srgb,var(--badge) 11%,transparent);
  font-size:7.5px;white-space:nowrap;letter-spacing:.055em;
}
.bc-profile-v28 .profile-badge.locked .profile-badge-rarity{opacity:.88}
.bc-profile-v28 .profile-badge h4{
  margin-top:9px;font-size:10.4px;line-height:1.35;overflow-wrap:anywhere;
}
.bc-profile-v28 .profile-badge p{
  min-height:0;margin-top:4px;font-size:8.75px;line-height:1.45;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  line-clamp:2;overflow:hidden;
}
.bc-profile-v28 .profile-badge .profile-badge-foot{margin-top:10px}
.bc-profile-v28 .profile-badge .profile-badge-earned,
.bc-profile-v28 .profile-badge .profile-badge-lockrow{font-size:8px}
.bc-profile-v28 .profile-badge .profile-badge-earned i{color:var(--badge)}
.bc-profile-v28 .profile-badge .profile-badge-progress{margin-top:6px;height:4px}
/* Rarity is a property of the badge, not its category/tone. The :has branch
   styles first paint; data-rarity is set by the JS for broader compatibility. */
.bc-profile-v28 .profile-badge[data-rarity="common"],
.bc-profile-v28 .profile-badge:has(.profile-badge-icon[data-rarity="common"]){--badge:#a7b7cc;--badge-tone:#a7b7cc}
.bc-profile-v28 .profile-badge[data-rarity="uncommon"],
.bc-profile-v28 .profile-badge:has(.profile-badge-icon[data-rarity="uncommon"]){--badge:#4ade80;--badge-tone:#4ade80}
.bc-profile-v28 .profile-badge[data-rarity="rare"],
.bc-profile-v28 .profile-badge:has(.profile-badge-icon[data-rarity="rare"]){--badge:#65a9fb;--badge-tone:#65a9fb}
.bc-profile-v28 .profile-badge[data-rarity="epic"],
.bc-profile-v28 .profile-badge:has(.profile-badge-icon[data-rarity="epic"]){--badge:#c28cff;--badge-tone:#c28cff}
.bc-profile-v28 .profile-badge[data-rarity="legendary"],
.bc-profile-v28 .profile-badge:has(.profile-badge-icon[data-rarity="legendary"]){--badge:#f6c453;--badge-tone:#f6c453}

/* Keep rarity colors visible at rest: old .locked filter made them grey. */
@media(max-width:1040px){
  .bc-profile-v28 .profile-badges{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:740px){
  .bc-profile-v28 .profile-badges{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .bc-profile-v28 .profile-badges .profile-badge{min-height:146px;padding:11px}
}
@media(max-width:430px){
  .bc-profile-v28 .profile-badges{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .bc-profile-v28 .profile-badges .profile-badge{min-height:143px;padding:9px}
  .bc-profile-v28 .profile-badge .profile-badge-icon{width:34px !important;height:34px !important;border-radius:9px !important}
  .bc-profile-v28 .profile-badge .profile-badge-icon i{font-size:13px !important}
  .bc-profile-v28 .profile-badge .profile-badge-rarity{height:19px;padding:0 4px;font-size:6.2px}
  .bc-profile-v28 .profile-badge h4{font-size:9.4px}
  .bc-profile-v28 .profile-badge p{font-size:8px}
  .bc-profile-v28 .profile-badge .profile-badge-earned,
  .bc-profile-v28 .profile-badge .profile-badge-lockrow{font-size:7.2px}
}
@media(max-width:340px){
  .bc-profile-v28 .profile-badges{grid-template-columns:1fr}
  .bc-profile-v28 .profile-badges .profile-badge{min-height:125px}
}
@media(prefers-reduced-motion:reduce){
  .bc-profile-v28 .profile-badge{transition:none !important}
}


/* BloxChase V63.77.28 — rank identity, responsive, reduced motion aware. */
.bc-profile-v28 .profile-name.bc-rank-name{
 color:var(--profile-rank-color,#f3f4fc)!important;
 text-shadow:0 0 20px color-mix(in srgb,var(--profile-rank-color) 23%,transparent);
 overflow-wrap:anywhere;
}
.bc-profile-v28 .bc-profile-rank-mark{
 position:relative;isolation:isolate;display:inline-grid;place-items:center;
 flex:0 0 34px;width:34px;height:34px;line-height:1;
 border-radius:11px;border:1px solid color-mix(in srgb,var(--profile-rank-color) 40%,rgba(255,255,255,.06));
 background:radial-gradient(circle at 50% 30%,color-mix(in srgb,var(--profile-rank-color) 14%,transparent),rgba(13,24,40,.45) 78%);
 box-shadow:inset 0 1px rgba(255,255,255,.08),0 0 12px color-mix(in srgb,var(--profile-rank-color) 16%,transparent);
 overflow:visible;
}
.bc-profile-v28 .bc-profile-rank-mark:before{
 content:"";position:absolute;inset:7%;z-index:-1;border-radius:999px;
 background:var(--profile-rank-color);filter:blur(11px);opacity:.22;
 animation:bc728-rank-aura 2.55s ease-in-out infinite;
}
.bc-profile-v28 .bc-profile-rank-mark img{
 position:relative;display:block;width:32px;height:32px;object-fit:contain;
 filter:drop-shadow(0 0 7px color-mix(in srgb,var(--profile-rank-color) 39%,transparent));
 animation:bc728-rank-float 2.55s ease-in-out infinite;
}
.bc-profile-v28 .profile-name.bc-rank-chaser{
 background:linear-gradient(100deg,#ffcf65,#8ce8ff,#b59aff,#ff9fc4,#ffcf65);
 background-size:300% 100%;-webkit-background-clip:text;background-clip:text;
 -webkit-text-fill-color:transparent;animation:bc728-rank-spectrum 8s linear infinite;
}
.bc-profile-v28 .profile-badge-more{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 vertical-align:middle!important;line-height:1!important;gap:6px;
 padding-top:0!important;padding-bottom:0!important;
 font-variant-numeric:tabular-nums;
}
.bc-profile-v28 .profile-badge-more i{display:inline-flex;align-items:center;justify-content:center;line-height:1!important;vertical-align:middle!important}
.bc-profile-v28 .bc-profile-rank-next{font-weight:650;color:#dce5f2}
.bc-profile-v28 .bc-profile-rank-next strong{color:#fff;font-weight:850}
.bc-profile-v28 .bc-profile-rank-remaining{color:#91a5c2;font-size:10px;text-align:right}
.bc-profile-v28 .bc-profile-rank-bar>span{
 background:linear-gradient(90deg,color-mix(in srgb,var(--profile-rank-color,#8b7cf6) 72%,#6874ed),var(--profile-rank-color,#8b7cf6));
 box-shadow:0 0 13px color-mix(in srgb,var(--profile-rank-color,#8b7cf6) 25%,transparent);
}
@keyframes bc728-rank-aura{0%,100%{opacity:.18;transform:scale(.9)}50%{opacity:.47;transform:scale(1.19)}}
@keyframes bc728-rank-float{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.045)}}
@keyframes bc728-rank-spectrum{to{background-position:300% 0}}
@media(max-width:640px){
 .bc-profile-v28 .bc-profile-rank-mark{width:29px;height:29px;flex-basis:29px;border-radius:9px}
 .bc-profile-v28 .bc-profile-rank-mark img{width:28px;height:28px}
 .bc-profile-v28 .bc-profile-rank-remaining{font-size:9px}
 .bc-profile-v28 .profile-progress-head{align-items:flex-start;flex-wrap:wrap;row-gap:3px}
}
@media(prefers-reduced-motion:reduce){
 .bc-profile-v28 .bc-profile-rank-mark:before,.bc-profile-v28 .bc-profile-rank-mark img,.bc-profile-v28 .profile-name.bc-rank-chaser{animation:none!important}
}
