/* Shared by everything social on the site (community feeds, comments): the avatar circle, the spoiler cover,
 * the reaction ovals and the reaction popup. */

.fp-av{position:relative; width:42px; height:42px; border-radius:50%; background:var(--blue-tint); color:var(--blue); display:grid; place-items:center; font:700 17px/1 'Sora',sans-serif; overflow:hidden; flex:none;}
.fp-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}

.fp-reveal{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; background:rgba(14,27,46,.35); border:0; border-radius:12px; color:#fff; cursor:pointer; font:inherit;}
.fp-reveal span{font:700 15px/1.2 'Inter',sans-serif;}
.fp-reveal small{font-size:12.5px; opacity:.85;}
.fp-reveal:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}

.fp-rstack{display:inline-flex;}
.fp-rstack .rx + .rx{margin-inline-start:-6px;}

.fp-picker{position:absolute; inset-inline-start:0; bottom:calc(100% + 6px); z-index:30; display:flex; gap:4px; padding:7px; background:var(--white); border:1px solid var(--border-soft); border-radius:999px; box-shadow:0 10px 30px rgba(0,0,0,.28);}
.fp-picker[hidden]{display:none;}
.fp-picker{padding:4px 5px; gap:1px; box-shadow:0 6px 18px rgba(0,0,0,.22); transform-origin:var(--ox,30px) 100%;}
.fp-picker:not([hidden]){animation:fp-pk-in .42s cubic-bezier(.2,1.55,.4,1) both;}
.fp-pick{border:0; background:transparent; padding:5px; border-radius:50%; cursor:pointer; transition:background .12s;}
.fp-picker .rx.lg{--s:30px;}
.fp-picker:not([hidden]) .fp-pick{animation:fp-pk-item .42s cubic-bezier(.2,1.7,.4,1) both; animation-delay:calc(70ms + var(--i, 0) * 30ms);}
.fp-pick:hover,.fp-pick.is-hot,.fp-pick:focus-visible{background:var(--blue-tint);}
.fp-pick:focus-visible{outline:2px solid var(--blue);}
.fp-tip{position:absolute; left:0; bottom:calc(100% + 6px); transform:translateX(-50%); background:var(--navy); color:var(--white); font:700 11px/1 var(--font-body, Inter, system-ui, sans-serif); padding:5px 8px; border-radius:8px; white-space:nowrap; pointer-events:none; opacity:0; transition:opacity .08s;}
.fp-tip.on{opacity:1;}
.fp-fly{position:fixed; left:0; top:0; z-index:99; pointer-events:none; will-change:transform;}
.fp-like.fp-hide .rx,.fp-like.fp-hide .rx-plain{visibility:hidden;}
.fp-like .rx.fp-pop,.fp-like .rx-plain.fp-pop{animation:fp-bpop .62s cubic-bezier(.2,1.5,.4,1);}
@keyframes fp-pk-in{from{opacity:0; transform:translateY(8px) scale(.55);}to{opacity:1; transform:none;}}
@keyframes fp-pk-item{from{opacity:0; transform:translateY(16px) scale(.3);}to{opacity:1; transform:none;}}
@keyframes fp-bpop{0%{transform:scale(.55);}45%{transform:scale(1.28) rotate(-6deg);}75%{transform:scale(.94) rotate(3deg);}100%{transform:none;}}
@media (prefers-reduced-motion:reduce){
  .fp-picker:not([hidden]),.fp-picker:not([hidden]) .fp-pick,.fp-like .rx.fp-pop,.fp-like .rx-plain.fp-pop{animation:none;}
}
.fp-pick.is-on{box-shadow:0 0 0 2px var(--blue); }

/* The reaction pictures sit on the same oval the app draws (ReactionBackgroundDrawable): a radial colour that
 * darkens toward the edge, a soft shadow low on the right, a light arc on the upper left and a thin dark rim. */
.rx{--s:24px; --rx:#F7B928; --rxd:color-mix(in srgb, var(--rx) 40%, rgb(38 20 10) 60%);
    position:relative; display:inline-grid; place-items:center; flex:none; width:var(--s); height:var(--s); border-radius:50%;
    background:radial-gradient(circle closest-side, var(--rx) 44%, var(--rxd) 110%);
    box-shadow:inset 0 0 0 calc(var(--s) * .03) rgb(38 20 10 / .55); line-height:1;}
.rx::before{content:""; position:absolute; z-index:0; left:20%; right:12%; top:68%; height:42%; border-radius:50%;
    background:radial-gradient(closest-side, rgb(38 20 10 / .29), transparent); pointer-events:none;}
.rx::after{content:""; position:absolute; z-index:0; inset:6.5%; border-radius:50%; pointer-events:none;
    background:conic-gradient(from 0deg, rgb(255 255 255 / .92) 0deg, rgb(255 214 150 / .82) 49deg, transparent 70deg, transparent 290deg, rgb(255 214 150 / .82) 311deg, rgb(255 255 255 / .92) 360deg);
    -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 14%), #000 calc(100% - 14%)); mask:radial-gradient(farthest-side, transparent calc(100% - 14%), #000 calc(100% - 14%));}
.rx img,.rx .rx-e{position:relative; z-index:1;}
.rx img{width:90%; height:90%; object-fit:contain; display:block;}
.rx-1 img,.rx-2 img{width:84%; height:84%;}
.rx-3 img{width:76%; height:76%;}
.rx-5 img{width:78%; height:78%;}
.rx .rx-e{display:none; font-size:calc(var(--s) * .55); line-height:1;}
.rx.no-img .rx-e{display:block;}
.rx.sm{--s:20px; margin:0;}
.fp-rstack .rx{box-shadow:inset 0 0 0 calc(var(--s) * .03) rgb(38 20 10 / .55), 0 0 0 2px var(--white);}
.rx.md{--s:26px;}
.rx.lg{--s:40px;}
/* the app's reaction colours (colors.xml) */
.rx-1,.rb-1{--rx:#1877F2;--rxt:#fff;} .rx-2,.rb-2{--rx:#E0495D;--rxt:#fff;} .rx-3,.rb-3{--rx:#FFDB4D;--rxt:#3a2a00;} .rx-4,.rb-4{--rx:#1AC6FF;--rxt:#032a38;}
.rx-5,.rb-5{--rx:#669999;--rxt:#fff;} .rx-6,.rb-6{--rx:#996633;--rxt:#fff;} .rx-7,.rb-7{--rx:#E0495D;--rxt:#fff;} .rx-8,.rb-8{--rx:#FF9966;--rxt:#3a1800;}
/* default Like: just the icon, no oval, in the text colour */
.rx-plain{width:22px; height:22px; flex:none; background:currentColor; -webkit-mask:var(--m) center/contain no-repeat; mask:var(--m) center/contain no-repeat;}

/* the author's picture and name open their profile; they keep the look of the text around them */
a.fp-au{color:inherit; text-decoration:none;}
b > a.fp-au{display:inline; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%;}
b > a.fp-au:hover{text-decoration:underline;}
a.fp-av.fp-au:hover{filter:brightness(1.08);}
a.fp-au:focus-visible{outline:2px solid var(--blue); outline-offset:2px; border-radius:4px;}
