/* Omni 0.2.131 — minimalist circular avatar + Bleach-themed mini-profile cutouts.
 * Isolated from messages, P2P attachments, Mini Players and existing element frames.
 * All images have real transparent backgrounds; no colored rectangular backplate. */

/* Real mini-profile avatar: circular for every user and every frame. */
#nexoMiniProfile .nexo-mini-avatar,
#nexoMiniProfile .nexo-mini-avatar img{
 border-radius:50%!important;
}
#nexoMiniProfile .nexo-mini-avatar{
 isolation:isolate;
}
#nexoMiniProfile .nexo-mini-avatar img{
 clip-path:circle(50% at 50% 50%);
}

/* Move only the themed portrait far enough inside the panel for the entire
 * illustrated head, hands, sword and energy to remain inside the viewport. */
/* No layout changes to the avatar line or any profile controls. The only
 * permitted movement is applied directly to the round avatar via the
 * individual overlay renderer, leaving the profile geometry intact. */

/* Overlay is a fixed sibling of the OpenDesign v4 popup: its content is not
 * clipped by the popup's scrollable region, and never receives mouse events. */
#omniMiniBleachOverlay[hidden]{display:none!important}
#omniMiniBleachOverlay{
 position:fixed!important;z-index:142!important;
 display:block;pointer-events:none!important;user-select:none;
 max-width:none!important;max-height:none!important;
 background:transparent!important;border:0!important;
 transform:translateZ(0);overflow:visible!important;
 contain:layout style;
}
#omniMiniBleachOverlay img{
 display:block;width:100%;height:100%;max-width:none;
 object-fit:fill;pointer-events:none!important;
 -webkit-user-drag:none;user-select:none;
 background:transparent;filter:none;
}

/* The storefront remains restrained and flat; the only saturated elements
 * are the users' purchased character art, not the container or buttons. */
#appShell #nexoShop.omni-shop-081 .omni-shop-bleach-product .omni-shop-preview{
 height:177px!important;min-height:177px!important;
 display:grid!important;place-items:center!important;
 padding:6px!important;overflow:hidden!important;
 background:rgba(14,20,26,.34)!important;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-preview{
 position:relative;width:232px;height:166px;flex:none;
 background:none;overflow:visible;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-photo{
 position:absolute;left:83px;top:64px;
 width:68px;height:68px;border-radius:50%!important;
 background:radial-gradient(circle at 42% 29%,#617282,#2a3542 74%);
 border:2px solid rgba(208,222,228,.48);
 box-shadow:inset 0 0 0 2px rgba(6,15,23,.3);
 overflow:hidden;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-photo::before{
 content:"";position:absolute;left:26px;top:12px;
 width:16px;height:17px;border-radius:50%;
 background:rgba(210,219,226,.72);
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-photo::after{
 content:"";position:absolute;left:13px;top:33px;
 width:42px;height:38px;border-radius:50% 50% 16% 16%;
 background:rgba(171,184,199,.57);
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-preview>img{
 position:absolute;object-fit:fill;pointer-events:none;
 max-width:none!important;max-height:none!important;
 -webkit-user-drag:none;user-select:none;
}

/* The user avatar is always the real picture, not the image-generation
 * placeholder. */
@media(max-width:660px){
 #appShell #nexoShop.omni-shop-081 .omni-shop-bleach-product .omni-shop-preview{
  height:173px!important;min-height:173px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 #omniMiniBleachOverlay,#omniMiniBleachOverlay img{
  animation:none!important;transition:none!important
 }
}

/* Omni 0.2.132 calibration: match every character ring to the avatar's
 * actual rendered diameter, with its inner disk cut out dynamically in JS. */
#nexoMiniProfile.omni-bleach-active .nexo-mini-avatar{
  border-width:2px!important;
  border-color:color-mix(in srgb,var(--omni-bleach-accent,#accfce),var(--nm-background) 45%)!important;
  box-shadow:0 0 0 1px rgba(16,22,27,.55)!important;
}
#nexoMiniProfile.omni-bleach-active .nexo-mini-avatar img{
  border-radius:50%!important;
  clip-path:circle(50% at 50% 50%)!important;
}
#omniMiniBleachOverlay>img{
  position:absolute;inset:0;
  object-fit:fill;
  max-width:none!important;max-height:none!important;
  pointer-events:none!important;
}
#omniMiniBleachOverlay #omniMiniBleachPresence{
  position:absolute!important;
  display:block;z-index:3;
  box-sizing:border-box;
  border-radius:50%;pointer-events:none;
  filter:none;box-shadow:none;
}
#omniMiniBleachOverlay #omniMiniBleachPresence[hidden]{
  display:none!important;
}
/* The original storefront is untouched outside these four preview cards.
 * Flat subdued cards make the purchased illustration itself the focal point. */
#appShell #nexoShop.omni-shop-081 .omni-shop-bleach-product .omni-shop-preview{
  background:rgba(19,26,31,.31)!important;
  border-bottom-color:rgba(221,236,227,.09)!important;
}
@media(prefers-reduced-motion:reduce){
  #omniMiniBleachOverlay,#omniMiniBleachOverlay *{
    animation:none!important;transition:none!important;
  }
}

/* Accurate circular portrait inside the storefront mockup. Use the account's
 * picture if available, never an invented photograph or opaque background. */
#appShell #nexoShop.omni-shop-081 .omni-bleach-photo.has-user::before,
#appShell #nexoShop.omni-shop-081 .omni-bleach-photo.has-user::after{
  display:none!important;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-photo>img{
  position:absolute!important;inset:0!important;
  display:block;width:100%!important;height:100%!important;
  border:0;border-radius:50%!important;
  object-fit:cover!important;clip-path:circle(50% at 50%);
  max-width:none!important;max-height:none!important;
  pointer-events:none;-webkit-user-drag:none;
}


/* CSP-safe Bleach storefront geometry. Chromium rejects style="" markup,
 * so all sizes, centres, masks and offsets belong in this loaded CSS file. */
#appShell #nexoShop.omni-shop-081 .omni-shop-bleach-product .omni-bleach-preview>img{
  position:absolute!important;display:block!important;
  left:var(--bleach-x)!important;top:var(--bleach-y)!important;
  width:var(--bleach-w)!important;height:var(--bleach-h)!important;
  max-width:none!important;max-height:none!important;
  min-width:0!important;min-height:0!important;
  border:0!important;box-shadow:none!important;
  object-fit:fill!important;pointer-events:none!important;
  -webkit-mask-image:radial-gradient(circle at var(--bleach-hole-x) var(--bleach-hole-y),
    transparent 0,transparent 34.15px,#000 35.25px)!important;
  mask-image:radial-gradient(circle at var(--bleach-hole-x) var(--bleach-hole-y),
    transparent 0,transparent 34.15px,#000 35.25px)!important;
}
#appShell #nexoShop.omni-shop-081 .omni-shop-bleach-product .omni-bleach-preview[data-frame="ichigo"]{
  --bleach-x:19.6667px;
  --bleach-y:27.0278px;
  --bleach-w:173.0370px;
  --bleach-h:115.3580px;
  --bleach-hole-x:97.3333px;
  --bleach-hole-y:70.9722px;
}
#appShell #nexoShop.omni-shop-081 .omni-shop-bleach-product .omni-bleach-preview[data-frame="rukia"]{
  --bleach-x:57.7438px;
  --bleach-y:26.5772px;
  --bleach-w:173.0370px;
  --bleach-h:115.3580px;
  --bleach-hole-x:59.2562px;
  --bleach-hole-y:71.4228px;
}
#appShell #nexoShop.omni-shop-081 .omni-shop-bleach-product .omni-bleach-preview[data-frame="renji"]{
  --bleach-x:13.1154px;
  --bleach-y:30.6154px;
  --bleach-w:165.8698px;
  --bleach-h:110.5799px;
  --bleach-hole-x:103.8846px;
  --bleach-hole-y:67.3846px;
}
#appShell #nexoShop.omni-shop-081 .omni-shop-bleach-product .omni-bleach-preview[data-frame="byakuya"]{
  --bleach-x:52.6273px;
  --bleach-y:27.8758px;
  --bleach-w:169.8909px;
  --bleach-h:113.2606px;
  --bleach-hole-x:64.3727px;
  --bleach-hole-y:70.1242px;
}

/* Omni 0.2.133: complete Bleach cover surrounding the Mini Perfil.
 * Four transparent 9-slice illustrated PNG/WebP frames. The photo's existing
 * circular Bleach artwork remains separate and pixel-calibrated.
 * The center of each decorative texture contains NO background pixels. */
#omniMiniBleachCardFrame[hidden]{display:none!important}
#omniMiniBleachCardFrame{
 position:fixed!important;z-index:141!important;
 display:block;pointer-events:none!important;user-select:none;
 box-sizing:border-box!important;background:none!important;
 border:28px solid transparent!important;
 border-image-slice:96!important;
 border-image-width:28px!important;
 border-image-repeat:stretch!important;
 border-image-outset:0!important;
 overflow:visible!important;max-width:none!important;max-height:none!important;
 outline:none!important;box-shadow:none!important;
}
#omniMiniBleachCardFrame[data-character="ichigo"]{
 border-image-source:url("/omni-bleach-cover-ichigo-133.webp")!important;
}
#omniMiniBleachCardFrame[data-character="rukia"]{
 border-image-source:url("/omni-bleach-cover-rukia-133.webp")!important;
}
#omniMiniBleachCardFrame[data-character="renji"]{
 border-image-source:url("/omni-bleach-cover-renji-133.webp")!important;
}
#omniMiniBleachCardFrame[data-character="byakuya"]{
 border-image-source:url("/omni-bleach-cover-byakuya-133.webp")!important;
}
@media(max-width:660px){
 #omniMiniBleachCardFrame{border-width:23px!important;border-image-width:23px!important}
}
@media(prefers-reduced-motion:reduce){
 #omniMiniBleachCardFrame{animation:none!important;transition:none!important}
}

/* Storefront shows BOTH components of the same purchased Bleach SKU:
 * the circular avatar frame and the 9-slice cover around the profile card. */
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-card{
 position:absolute;left:46px;top:40px;width:140px;height:116px;
 background:#161d26;border:1px solid rgba(182,203,211,.29);
 border-radius:7px;box-sizing:border-box;
 overflow:hidden;pointer-events:none;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-card:before{
 content:"";display:block;position:absolute;top:0;left:0;right:0;height:53px;
 background:linear-gradient(110deg,#374c5a,#20313e);
 border-bottom:1px solid #4b6066a3;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-card>span{
 position:absolute;left:12px;top:12px;z-index:1;
 color:#cad8db;font-size:8px;letter-spacing:.07em;font-weight:800;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-card>b{
 position:absolute;bottom:17px;left:12px;height:5px;width:72px;
 border-radius:2px;background:#8194a249;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-card>i{
 position:absolute;bottom:27px;left:12px;height:4px;width:112px;
 background:#8194a23b;border-radius:2px;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-card>i:last-child{
 bottom:9px;width:103px;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-cover{
 display:block;position:absolute;left:37px;top:30px;
 width:158px;height:134px;box-sizing:border-box;
 border:11px solid transparent;
 border-image-slice:96;
 border-image-width:11px;
 border-image-repeat:stretch;
 pointer-events:none;background:none;z-index:2;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-cover[data-character="ichigo"]{
 border-image-source:url("/omni-bleach-cover-ichigo-133.webp");
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-cover[data-character="rukia"]{
 border-image-source:url("/omni-bleach-cover-rukia-133.webp");
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-cover[data-character="renji"]{
 border-image-source:url("/omni-bleach-cover-renji-133.webp");
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-mini-cover[data-character="byakuya"]{
 border-image-source:url("/omni-bleach-cover-byakuya-133.webp");
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-preview>.omni-bleach-photo{
 z-index:3;
}
#appShell #nexoShop.omni-shop-081 .omni-bleach-preview>img{
 z-index:4;
}
